joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100821e
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x100825c
test al, 1
je 0x100825c
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x100825c
push eax
push 0x10
push eax
push ebx
push 0x47b
push eax
call fcn.01007006
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0xffffffffffffffff
push 0x10015a4
mov edi, 0x100159c
push edi
call esi
cmp eax, 0xffffffff
jne 0x100828a
push ebx
push eax
push 0x1001590
push edi
call esi
cmp eax, 0xffffffff
jne 0x100828a
or eax, eax
jmp 0x10082d1
cmp dword [ebp + 0x18], 0
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x10082a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x10082b7
cmp eax, 3
jl 0x1008297
push 0x10014b3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 0x14], 0xffffffff
mov esi, eax
je 0x10082cf
test byte [ebp + 0x14], 1
je 0x10082cf
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10082dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x1023220], 0
push esi
jne 0x10082fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01006d86
mov esi, eax
jmp 0x100830e
push 0x1023220
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01006dcd
xor esi, esi
inc esi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101a172
test esi, esi
je 0x1008332
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1008332
xor eax, eax
jmp 0x1008334
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x100833e
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
cmp byte [edi], al
je 0x100841f
push 0x5c
push edi
mov dword [ebp - 4], ebx
call fcn.01019ed9
mov esi, eax
cmp esi, ebx
je 0x100836e
mov al, byte [esi]
mov byte [ebp + 0xf], al
mov byte [esi], bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 0x10], ebx
je 0x10083b7
cmp eax, 0xffffffff
jne 0x1008389
push 4
mov eax, 0x483
pop ebx
jmp 0x1008392
test al, 0x10
jne 0x10083b7
mov eax, 0x484
push ebx
push 0x20
push 0
push edi
push eax
push dword [ebp + 8]
call fcn.01007006
cmp eax, 7
je 0x10083aa
test ebx, ebx
jne 0x10083b7
test esi, esi
je 0x10083b3
mov al, byte [ebp + 0xf]
mov byte [esi], al
xor eax, eax
jmp 0x100841f
test esi, esi
je 0x10083c0
mov al, byte [ebp + 0xf]
mov byte [esi], al
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
jne 0x10083d4
cmp byte [edi + 2], 0x5c
jne 0x10083d4
lea esi, [edi + 3]
jmp 0x1008417
cmp byte [edi], 0x5c
jne 0x1008417
cmp al, 0x5c
jne 0x1008417
lea esi, [edi + 2]
mov dword [ebp - 4], 2
jmp 0x1008417
cmp byte [esi], 0x5c
jne 0x100840e
cmp byte [esi - 1], 0x3a
je 0x100840e
cmp dword [ebp - 4], 0
je 0x10083ff
dec dword [ebp - 4]
jmp 0x100840e
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x10083e9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100870b
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x1020b74
push esi
mov dword [ebp - 0x38], eax
call fcn.010068e2
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x100875b
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.01007006
xor eax, eax
jmp 0x10087dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x40], edi
cmp dword [ebp + 0xc], eax
je 0x100877b
push 1
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call fcn.0100821e
jmp 0x10087bd
push esi
push dword [ebp - 0x3c]
push edi
push 0x10014b3
push 0
push dword [ebp - 0x38]
call ebx
jmp 0x10087bd
cmp dword [ebp + 0xc], 0
je 0x1008797
push edi
jmp 0x10087ad
push esi
push 0x30
lea eax, [ebp - 0x34]
push eax
push 0x10014b3
push edi
push dword [ebp - 0x38]
call ebx
lea eax, [ebp - 0x34]
push eax
call fcn.01006989
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x100878e
push esi
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01010bbf
leave
ret 8
Function at 0x100aaff
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 6
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x104
push esi
mov ebx, 0x1021404
push ebx
push 0x100
lea eax, [ebp - 0x30c]
push eax
push 3
lea eax, [ebp - 0x318]
push eax
push 0x1020ffc
mov dword [ebp - 0x310], 1
call fcn.0101171a
add esp, 0x24
lea eax, [ebp - 0x318]
push eax
push esi
mov edi, 0x1021300
push edi
call fcn.01006dcd
lea eax, [ebp - 0x30c]
push eax
push esi
push edi
call fcn.01006e54
push edi
push esi
push 0x1021508
call fcn.01006dcd
push 0x1001ad8
push ebx
push 0x1001ad0
mov ebx, 0x200
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01006e95
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1021508
call fcn.0101a172
cmp byte [0x1021710], 0
jne 0x100abfe
push edi
push esi
push 0x1021710
call fcn.01006dcd
push 0x1021404
push 0x1001ac0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01006e95
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1021710
call fcn.0101a172
push edi
push esi
push 0x1021814
call fcn.01006dcd
push 0x1001ab8
push 0x1021404
push 0x1001ad0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01006e95
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1021814
call fcn.0101a172
cmp dword [0x1022584], 0x866
je 0x100ac97
push 0x1001ab0
push 0x1021404
push 0x1001ad0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01006e95
add esp, 0x14
push edi
push esi
mov edi, 0x102160c
push edi
call fcn.01006dcd
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call fcn.0101a172
mov dword [0x1022578], 0x10016b0
mov dword [0x102257c], 7
jmp 0x100ac9c
mov edi, 0x102160c
cmp dword [0x1020b60], 0
mov esi, dword [ebp - 0x314]
je 0x100acfc
push esi
call fcn.01008889
test eax, eax
jne 0x100acfc
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x421
call fcn.0100684a
lea eax, [ebp - 0x20c]
push eax
push 0x856
push esi
call fcn.01006bbf
and dword [ebp - 0x310], 0
call fcn.0100e539
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x310]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01010bbf
leave
ret 4
push esi
call fcn.01009e91
test eax, eax
jne 0x100ad15
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x41f
jmp 0x100acc2
cmp dword [0x1022584], 0x866
je 0x100ad5b
push esi
call fcn.0100a22f
test eax, eax
jne 0x100ad3a
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x420
jmp 0x100acc2
push 0x10231e0
push 0
push 0x10019a0
push 0x10014c4
call fcn.0100693b
test eax, eax
jne 0x100ad5b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x422
call fcn.0100684a
lea eax, [ebp - 0x20c]
push eax
push 0x856
push esi
call fcn.01006bbf
jmp 0x100ace5
Function at 0x100d351
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x100d392
xor edi, edi
jmp 0x100d4bd
push dword [esi + 0x18]
call edi
mov dword [ebp - 0x110], eax
cmp eax, ebx
jne 0x100d3c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], ebx
jmp 0x100d4bd
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01006dcd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
jmp 0x100d3f6
lea ecx, [ebp - 0x108]
cmp eax, ecx
jb 0x100d3fb
dec eax
cmp byte [eax], 0x5c
jne 0x100d3eb
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov byte [eax + 1], bl
lea eax, [ebp - 0x108]
push eax
push ebx
mov ebx, 0x1001b2c
push ebx
push eax
call edi
test eax, eax
lea eax, [ebp - 0x108]
push eax
jne 0x100d465
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x100d443
mov byte [ebp - 0x108], 0x2e
mov byte [ebp - 0x107], 0x5c
mov byte [ebp - 0x106], al
lea eax, [ebp - 0x108]
push eax
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x100d45e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100d4ab
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.0100d22f
mov edi, eax
test edi, edi
jne 0x100d497
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x100d4ab
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call fcn.0100aef5
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.01010bbf
leave
ret 8
Function at 0x100d545
Capabilities:
Check if file exists
Enumerate gui resources
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
cmp dword [ebp + 8], 0
jne 0x100d567
push 0x57
call edi
xor eax, eax
jmp 0x100d6c0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x1c
push 0x42
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d586
push 8
call edi
xor eax, eax
jmp 0x100d6bf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x100d59d
push 8
call edi
jmp 0x100d6b5
and dword [esi + 0x14], 0
mov edi, 0x104
push edi
push 0x42
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x100d5bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x100d5d8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 8
jmp 0x100d688
push dword [ebp + 8]
push edi
push ebx
call fcn.01006dcd
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100d601
push dword [ebp - 4]
jmp 0x100d6aa
test al, 0x17
je 0x100d617
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x13
jmp 0x100d688
cmp dword [ebp + 0xc], 0
jne 0x100d6a1
push 3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100d66b
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push esi
push 0x100d520
push eax
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x25
call dword [0x1006198]
test eax, eax
jne 0x100d6a1
push eax
push 8
push dword [ebp + 8]
call fcn.0101b052
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x100d690
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d6b5
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100d6b5
push esi
push 0x100d520
push eax
call ebx
push dword [ebp + 0xc]
call fcn.0101a725
cmp dword [esi + 0x14], 0
push dword [ebp - 4]
je 0x100d6b9
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x100d6be
call edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x101010d
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10231e0
push 0x50
mov edi, 0x1022010
push edi
mov esi, 0x10014b3
push esi
push 0x10015b0
push 0x10014c4
call fcn.01007436
test eax, eax
jbe 0x101031a
mov eax, dword [0x101fb00]
push ebx
xor ebx, ebx
cmp eax, ebx
jbe 0x101016a
mov ecx, 0x101f2e4
mov byte [ecx], bl
add ecx, 0x104
dec eax
jne 0x101015f
push edi
push 0x200
lea eax, [ebp - 0x284]
push eax
push esi
push 0x1001c38
push edi
call fcn.01007436
test eax, eax
jbe 0x10102b4
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x10102b4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28c], eax
cmp eax, ebx
je 0x10102b4
push eax
push esi
push ebx
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10102a8
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1001c1c
push dword [ebp - 0x28c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1010201
mov eax, dword [ebp - 0x290]
mov eax, dword [eax]
jmp 0x1010206
mov eax, 0x4e40409
mov dword [ebp - 0x288], ebx
cmp dword [0x101fb00], ebx
jbe 0x10102a8
mov dword [ebp - 0x294], eax
shr dword [ebp - 0x294], 0x10
movzx ebx, ax
mov esi, 0x101f2e4
push dword [esi - 4]
movzx eax, word [ebp - 0x294]
push eax
push ebx
push 0x1001bfc
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.01006e95
add esp, 0x18
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x28c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x101028c
push 0xfe
push dword [ebp - 0x290]
push 0x100
push esi
call fcn.01006e07
inc dword [ebp - 0x288]
mov eax, dword [ebp - 0x288]
add esi, 0x104
cmp eax, dword [0x101fb00]
jb 0x101022d
xor ebx, ebx
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x288], ebx
cmp dword [0x101fb00], ebx
jbe 0x1010314
mov esi, 0x101f2e4
push edi
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x284]
push eax
push 0x10014b3
push dword [esi - 4]
push edi
call fcn.01007436
test eax, eax
jbe 0x10102fa
push 0xfe
lea eax, [ebp - 0x284]
push eax
push ebx
push esi
call fcn.01006e07
inc dword [ebp - 0x288]
mov eax, dword [ebp - 0x288]
add esi, 0x104
cmp eax, dword [0x101fb00]
jb 0x10102c7
xor eax, eax
inc eax
pop ebx
jmp 0x101031c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01010bbf
leave
ret
Function at 0x1010a4c
Capabilities:
Accept command line arguments

Disassembly:
push pe_nt_image_headers32
push 0x101d4f8
call fcn.01013340
push dword [0x101fb04]
call fcn.010132ff
pop ecx
mov dword [0x101fb04], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1010a3c
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x10108e3
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x10225bc], edi
mov dword [0x10225c4], eax
mov dword [0x10225c8], edx
mov dword [0x10225cc], esi
mov dword [0x10225c0], ecx
call fcn.01010823
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.01013234
pop ecx
test eax, eax
jne 0x1010934
push 0x1c
call fcn.010107f5
pop ecx
call fcn.01013053
test eax, eax
jne 0x1010945
push 0x10
call fcn.010107f5
pop ecx
mov dword [ebp - 4], ebx
call fcn.010129da
test eax, eax
jge 0x1010959
push 0x1b
call fcn.01011d9c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10245bc], eax
call fcn.0101289e
mov dword [0x10225ac], eax
call fcn.010127aa
test eax, eax
jge 0x101097f
push 8
call fcn.01011d9c
pop ecx
call fcn.0101245c
test eax, eax
jge 0x1010990
push 9
call fcn.01011d9c
pop ecx
push ebx
call fcn.01011ec0
pop ecx
test eax, eax
je 0x10109a2
push eax
call fcn.01011d9c
pop ecx
call fcn.010123f8
test byte [ebp - 0xd4], bl
je 0x10109b8
movzx ecx, word [ebp - 0xd0]
jmp 0x10109bb
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x10109de
push eax
call fcn.01012020
call fcn.01012056
jmp 0x1010a1f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x1010a41
mov eax, 0xff
call fcn.01013388
ret
call fcn.01013531
jmp 0x101086f
Function at 0x10120c5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x101fb28]
je 0x10120eb
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x10120d9
cmp esi, 0x17
jae 0x1012245
push 3
call fcn.01016df1
pop ecx
cmp eax, 1
je 0x101220f
push 3
call fcn.01016df1
pop ecx
test eax, eax
jne 0x101211e
cmp dword [0x101fb04], 1
je 0x101220f
cmp edi, 0xfc
je 0x1012245
push 0x1002214
mov edi, 0x314
push edi
mov esi, 0x1022600
push esi
call fcn.01016d84
add esp, 0xc
test eax, eax
je 0x1012154
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
mov byte [0x102271d], bl
push 0x104
mov ebx, 0x1022619
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1012197
push 0x10021fc
push 0x2fb
push ebx
call fcn.01016d84
add esp, 0xc
test eax, eax
je 0x1012197
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0101440f
add esp, 0x14
push ebx
push edi
push esi
call fcn.01016d0b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10121b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
push 0x10021f8
push edi
push esi
call fcn.01016d0b
add esp, 0xc
test eax, eax
je 0x10121d5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x101fb2c]
push edi
push esi
call fcn.01016d0b
add esp, 0xc
test eax, eax
je 0x10121fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
push 0x12010
push 0x10021d0
push esi
call fcn.01016b64
add esp, 0xc
jmp 0x1012245
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1012245
cmp edi, 0xffffffff
je 0x1012245
mov edx, dword [esi*8 + 0x101fb2c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101222e
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1013053
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1002240
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10130a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10022ac
push edi
call esi
push 0x10022a0
push edi
mov dword [0x1022a24], eax
call esi
push 0x1002294
push edi
mov dword [0x1022a28], eax
call esi
push 0x100228c
push edi
mov dword [0x1022a2c], eax
call esi
mov dword [0x1022a30], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x1022a24], ebx
je 0x10130cb
cmp dword [0x1022a28], ebx
je 0x10130cb
cmp dword [0x1022a2c], ebx
je 0x10130cb
cmp dword [0x1022a30], ebx
jne 0x10130ef
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1022a28], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1022a24], 0x1012d17
mov dword [0x1022a2c], esi
mov dword [0x1022a30], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x101fc8c], eax
cmp eax, 0xffffffff
je 0x1013162
push dword [0x1022a28]
push eax
call esi
test eax, eax
je 0x1013162
call fcn.0101207e
push dword [0x1022a24]
call fcn.01012c19
push dword [0x1022a28]
mov dword [0x1022a24], eax
call fcn.01012c19
push dword [0x1022a2c]
mov dword [0x1022a28], eax
call fcn.01012c19
push dword [0x1022a30]
mov dword [0x1022a2c], eax
call fcn.01012c19
add esp, 0x10
mov dword [0x1022a30], eax
call fcn.01015bd6
test eax, eax
jne 0x1013168
call fcn.01012d54
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1012f03
push dword [0x1022a24]
call fcn.01012c9f
pop ecx
call eax
mov dword [0x101fc90], eax
cmp eax, 0xffffffff
je 0x101315d
push 0x214
push 1
call fcn.01016faa
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x101315d
push esi
push dword [0x101fc90]
push dword [0x1022a2c]
call fcn.01012c9f
pop ecx
call eax
test eax, eax
jne 0x10131bb
push esi
call fcn.01011942
pop ecx
jmp 0x101315d
push ebx
push esi
call fcn.01012d96
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1013164
Function at 0x1016b64
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01012c91
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1022f14], ebx
jne 0x1016c3d
push ebx
push ebx
push 0x10024b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1016ba8
xor eax, eax
jmp 0x1016d01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10024a8
push edi
call esi
cmp eax, ebx
je 0x1016ba1
push eax
call fcn.01012c19
mov dword [esp], 0x1002498
push edi
mov dword [0x1022f14], eax
call esi
push eax
call fcn.01012c19
mov dword [esp], 0x1002484
push edi
mov dword [0x1022f18], eax
call esi
push eax
call fcn.01012c19
mov dword [0x1022f1c], eax
lea eax, [ebp - 8]
push eax
call fcn.01011e39
pop ecx
pop ecx
test eax, eax
je 0x1016c0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1016c3d
push 0x1002468
push edi
call esi
push eax
call fcn.01012c19
pop ecx
mov dword [0x1022f24], eax
cmp eax, ebx
je 0x1016c3d
push 0x1002450
push edi
call esi
push eax
call fcn.01012c19
pop ecx
mov dword [0x1022f20], eax
mov eax, dword [0x1022f20]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1016cb6
cmp dword [0x1022f24], esi
je 0x1016cb6
push eax
call fcn.01012c9f
pop ecx
call eax
cmp eax, ebx
je 0x1016c83
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1022f24]
call fcn.01012c9f
pop ecx
call eax
test eax, eax
je 0x1016c83
test byte [ebp - 0x18], 1
jne 0x1016cb6
lea eax, [ebp - 0xc]
push eax
call fcn.01011e7a
pop ecx
test eax, eax
je 0x1016c9e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101440f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1016cad
or dword [ebp + 0x10], 0x200000
jmp 0x1016ce7
or dword [ebp + 0x10], 0x40000
jmp 0x1016ce7
mov eax, dword [0x1022f18]
cmp eax, esi
je 0x1016ce7
push eax
call fcn.01012c9f
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1016ce7
mov eax, dword [0x1022f1c]
cmp eax, esi
je 0x1016ce7
push dword [ebp - 4]
push eax
call fcn.01012c9f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1022f14]
call fcn.01012c9f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret