joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f281
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
push 0xc
mov eax, dword [esi + 0x14]
mov edx, ebx
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
movzx eax, word [eax + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], eax
pop ecx
test eax, eax
jne 0x10029f40
mov eax, ebx
mov edi, ebx
test eax, eax
jne 0x10029f71
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
movzx esi, word [esi + 6]
mov eax, dword [eax + 0x1c]
test esi, esi
jne 0x1002a056
mov eax, edi
mov dword [ecx + 0x10], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp dword [eax], esi
mov esi, dword [ebp - 4]
jne 0x10029fdd
cmp dword [ebp + 0xc], ebx
je 0x10029fc5
cmp dword [esi + 0x20], ebx
je 0x10029fc5
test byte [eax + 4], 1
jne 0x10029fdd
imul esi, edx, 0xc
lea edi, [ebp - 0x24]
add esi, dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebx
cmp dword [ebp + 0xc], ebx
je 0x10029f7e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], ebx
jne 0x10029f81
push 8
pop ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + eax]
test al, 4
je 0x10029f97
and edx, 0xffffcfff
mov dword [ebp - 0x20], edx
test al, 2
je 0x10029fa4
and edx, 0xfffff3ff
mov dword [ebp - 0x20], edx
test al, 1
je 0x10029fb1
and edx, 0xfffffcff
mov dword [ebp - 0x20], edx
test al, 8
je 0x1002a001
and edx, 0xc0ffffff
mov esi, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
jmp 0x1002a004
test byte [eax + 4], 1
lea edi, [ebp - 0x24]
jne 0x10029ff0
mov esi, eax
mov dword [ebp - 0x14], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
inc edx
add eax, ecx
cmp edx, edi
jb 0x10029f45
mov eax, dword [ebp - 0x14]
jmp 0x1001f2bb
imul esi, edx, 0xc
xor eax, eax
add esi, dword [ebp - 0x10]
inc eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x1001f2bb
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.1003248d
mov ecx, dword [ebp - 8]
test eax, eax
je 0x1001f2c8
mov eax, edx
mov dword [ecx + 0xc], esi
shr eax, 0x1e
mov dword [ecx + 8], eax
mov eax, edx
shr eax, 0x18
and al, 0x3f
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0xc
and eax, 3
jne 0x1002a04c
mov eax, edx
shr eax, 0xa
and eax, 3
jne 0x1002a04c
shr edx, 8
and edx, 3
je 0x1002a04e
mov dword [ecx], edx
jmp 0x1002a04e
mov dword [ecx], eax
xor edi, edi
inc edi
jmp 0x1001f2c8
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
mov ecx, dword [ebp - 8]
je 0x1002a06d
inc edx
add eax, 0x10
cmp edx, esi
jb 0x1002a056
jmp 0x1001f2df
xor ebx, ebx
inc ebx
jmp 0x1001f2df
Function at 0x1001f7a8
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1005f2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x210]
call fcn.1001f8cf
push 0x10008648
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.1001f87d
lea eax, [ebp - 0x210]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
jne 0x1001f83c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 2
jne 0x1002a1fe
test esi, esi
jne 0x1001f86d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021250
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], edi
mov ecx, esi
call fcn.1001ff17
mov ebx, eax
test ebx, ebx
js 0x1002a214
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x1001f823
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x1001f827
jmp 0x1002a230
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x10008aa0
call fcn.1003114c
mov edi, eax
jmp 0x1002a225
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.1003119b
mov edi, ebx
mov esi, dword [ebp - 0x214]
jmp 0x1001f823
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x875
call fcn.10031fb0
int3

Function at 0x10020910
Capabilities:
Set global application hook

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x100603bc], 0
jne 0x10020998
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
cmp byte [ebp + 0xc], 0
push 0
push dword [0x1005fc98]
mov dword [0x100603bc], eax
je 0x10020950
push sym.tiptsf.dll_RestrictedModeMsgWndProc
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x100603a8], eax
xor eax, eax
inc eax
pop ebp
ret 8
push 0x10016710
push 0xa
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push dword [0x1005fc98]
mov dword [0x100603b8], eax
push 0x100172d0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push dword [0x1005fc98]
mov dword [0x100603b4], eax
push 0x10017710
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x100603b0], eax
jmp 0x10020949
xor eax, eax
jmp 0x1002094c

Function at 0x10021750
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002178e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10021786
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10021790
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10021776
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10021860
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10021876
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10021891
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x10030206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10024b84
call fcn.10021dc9
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x10030267
call fcn.1002cbf8
mov esi, eax
jmp 0x1003037f
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x10030286
call fcn.1002cbf8
jmp 0x10030376
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1003027c
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x100302d2
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100302c8
lea ecx, [ebp - 0x418]
call fcn.1002e057
mov esi, 0x8007000e
jmp 0x10030398
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.1002ac27
cmp eax, 0x400
jbe 0x100302f9
push eax
lea ecx, [ebp - 0x418]
call fcn.1002c933
mov eax, dword [ebp - 0x418]
jmp 0x10030305
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1003032f
test eax, eax
jne 0x1003033a
mov esi, 0x8007000e
jmp 0x10030378
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1003027c
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.100300ad
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10030398
lea ecx, [ebp - 0x418]
call fcn.1002e057
lea ecx, [ebp - 0x428]
call fcn.1002b40e
mov eax, esi
call fcn.10021d1b
ret 0x10

Function at 0x10031557
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x10031574
mov ecx, 0x80004005
call fcn.1002cc99
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x10031585
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1003157d
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100315bd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x100315d8
mov ecx, 0x80004005
call fcn.1002cc99
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100315df
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003c259
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005f2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.1003c200
cmp byte [edi], 0
je 0x1003c2ff
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ebx
push ecx
push esi
mov esi, dword [eax + 0x24]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 8], ebx
call dword [0x100614f4]
call esi
test eax, eax
js 0x1003c2e7
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x100614f4]
call esi
test eax, eax
js 0x1003c2e7
cmp dword [ebp - 0xc], ebx
je 0x1003c2e7
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x1000f16c
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x1003c2e2
mov eax, 0x804
cmp si, ax
jne 0x1003c2e5
xor ebx, ebx
inc ebx
mov byte [edi], bl
mov eax, dword [ebp - 8]
pop ebx
test eax, eax
je 0x1003c2ff
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100614f4]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10021250
mov esp, ebp
pop ebp
ret
Function at 0x1004c633
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0x80004005
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, ebx
mov dword [ebp - 0x10], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x1004c65b
sub esi, edx
sar esi, 1
mov dword [ebp - 0x14], esi
test esi, esi
jle 0x1004c751
lea ebx, [esi + esi]
xor ecx, ecx
push 0x1c
pop edx
mov eax, ebx
mov dword [ebp - 0x18], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020cc4
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
test edi, edi
je 0x1004c751
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
jle 0x1004c731
mov edx, esi
mov ebx, edi
neg edx
lea esi, [edi - 0x1c]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebx], 1
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x10]
mov word [ebx + 4], ax
test ecx, ecx
je 0x1004c6dc
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
jmp 0x1004c6e5
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
and dword [ebx + 8], 0
mov word [ebx + 6], ax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov edx, dword [ebp - 8]
add eax, edx
and dword [ebx + 0x10], 0
mov dword [ebx + 0xc], eax
push 0x1c
pop eax
add ebx, eax
add esi, eax
mov dword [ebp - 8], esi
mov edi, ebx
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 8], 2
add ebx, eax
mov esi, dword [ebp - 8]
add esi, eax
mov eax, dword [ebp - 4]
inc eax
inc edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
cmp eax, dword [ebp - 0x14]
jl 0x1004c6b8
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push 0x1c
push edi
push ebx
call dword [sym.imp.USER32.dll_SendInput]
sub ebx, eax
neg ebx
push edi
sbb ebx, ebx
and ebx, 0x80004005
mov dword [ebp - 8], ebx
call fcn.10020cf8
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005b304
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100605e8]
push esi
push edi
test eax, eax
jne 0x1005b31d
call fcn.1005b3d9
test eax, eax
je 0x1005b369
mov eax, dword [0x100605e8]
cmp eax, 1
jne 0x1005b339
push 0xd
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
test eax, eax
je 0x1005b369
jmp 0x1005b3af
push eax
call dword [sym.imp.api_ms_win_core_interlocked_l1_2_0.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1005b352
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1005b3af
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005b36d
xor eax, eax
jmp 0x1005b3af
mov eax, dword [esi]
push dword [0x100605e8]
call dword [sym.imp.api_ms_win_core_interlocked_l1_2_0.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1005b393
push 0x8000
push 0
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualFree]
mov eax, edi
jmp 0x1005b3af
lea edi, [esi + 0xff0]
push esi
push dword [0x100605e8]
call dword [sym.imp.api_ms_win_core_interlocked_l1_2_0.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1005b399
mov eax, esi
pop edi
pop esi
ret
Function at 0x406623
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004054d4
and dword [ebp - 4], 0
cmp dword [0x4506c8], 0
mov ebx, eax
jne 0x4066d4
push 0x401c60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406785
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c54
push edi
call esi
test eax, eax
je 0x406785
push eax
call fcn.00405462
mov dword [esp], 0x401c44
push edi
mov dword [0x4506c8], eax
call esi
push eax
call fcn.00405462
mov dword [esp], 0x401c30
push edi
mov dword [0x4506cc], eax
call esi
push eax
call fcn.00405462
mov dword [esp], 0x401c14
push edi
mov dword [0x4506d0], eax
call esi
push eax
call fcn.00405462
pop ecx
mov dword [0x4506d8], eax
test eax, eax
je 0x4066d4
push 0x401bfc
push edi
call esi
push eax
call fcn.00405462
pop ecx
mov dword [0x4506d4], eax
mov eax, dword [0x4506d4]
cmp eax, ebx
je 0x40672c
cmp dword [0x4506d8], ebx
je 0x40672c
push eax
call fcn.004054dd
push dword [0x4506d8]
mov esi, eax
call fcn.004054dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40672c
test edi, edi
je 0x40672c
call esi
test eax, eax
je 0x406723
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406723
test byte [ebp - 0xc], 1
jne 0x40672c
or dword [ebp + 0x10], 0x200000
jmp 0x406765
mov eax, dword [0x4506cc]
cmp eax, ebx
je 0x406765
push eax
call fcn.004054dd
pop ecx
test eax, eax
je 0x406765
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406765
mov eax, dword [0x4506d0]
cmp eax, ebx
je 0x406765
push eax
call fcn.004054dd
pop ecx
test eax, eax
je 0x406765
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4506c8]
call fcn.004054dd
pop ecx
test eax, eax
je 0x406785
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406787
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4084b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f9f8]
jne 0x4084c2
repz ret
jmp fcn.0040b265
Function at 0x40bf8a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x40c04d
cmp word [eax], bx
je 0x40c04d
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
jne 0x40c008
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40bfdb
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x40bfe6
mov esi, 0x80004005
push esi
push 0x1f1
push 0x43ba04
call fcn.004315ca
push 0x43b9e8
push esi
call fcn.004315b6
pop ecx
pop ecx
jmp 0x40c0aa
xor esi, esi
cmp dword [ebp - 0x10], ebx
jle 0x40c04d
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x40c01f
cmp ecx, 0x2f
jne 0x40c03b
push 0xffffffffffffffff
push 0x4026ac
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40c047
push dword [edi + esi*4]
lea eax, [ebp - 0xc]
push eax
call fcn.004300d0
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x40c00f
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00430622
mov esi, eax
cmp esi, ebx
jge 0x40c06c
push 0x43b9c4
push esi
call fcn.004315b6
pop ecx
pop ecx
jmp 0x40c09f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x40c078
mov eax, 0x43b9c2
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.0042ea0c
mov esi, eax
cmp esi, ebx
jge 0x40c09f
push dword [ebp - 4]
push 0x43b98c
push esi
call fcn.004315b6
add esp, 0xc
cmp edi, ebx
je 0x40c0aa
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x40c0bb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x40c0c8
push dword [ebp - 0xc]
call fcn.0042ecb2
cmp dword [ebp - 4], ebx
je 0x40c0d5
push dword [ebp - 4]
call fcn.0042ecb2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40c370
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x268], 2
push ebx
push edi
jne 0x40c3d6
lea ebx, [esi + 0x278]
lea eax, [esi + 0x274]
push ebx
push eax
call fcn.0040cd82
mov edi, eax
test edi, edi
jns 0x40c3ad
push 0x43bc16
jmp 0x40c51c
push dword [esi + 0x2a8]
push dword [ebx]
push dword [esi + 0x274]
push dword [esi + 0x2c]
push dword [ebp + 0xc]
call fcn.0040cec2
mov edi, eax
test edi, edi
jns 0x40c3d6
push 0x43bbf0
jmp 0x40c51c
push 1
lea eax, [esi + 0x274]
push eax
call fcn.0040dd52
mov edi, eax
test edi, edi
jns 0x40c3f4
push 0x43bbc6
jmp 0x40c51c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x26c], eax
cmp eax, 0xffffffff
jne 0x40c43e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40c419
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x40c424
mov edi, 0x80004005
push edi
push 0x1a4
push 0x43ba04
call fcn.004315ca
push 0x43bb90
jmp 0x40c51c
push dword [esi + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40c488
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40c463
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x40c46e
mov edi, 0x80004005
push edi
push 0x1a9
push 0x43ba04
call fcn.004315ca
push 0x43bb4c
jmp 0x40c51c
push esi
push dword [ebp + 8]
call fcn.0041ba34
mov edi, eax
test edi, edi
jns 0x40c49e
push 0x43bb26
jmp 0x40c51c
push 1
call fcn.00432280
push esi
push 0x40c126
call fcn.00430c92
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0xe4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0xe8]
push eax
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x1b0]
push eax
lea eax, [esi + 0x198]
push eax
lea eax, [esi + 0x1b8]
push eax
lea eax, [esi + 0x1a0]
push eax
push dword [esi + 0x288]
push dword [esi + 0x284]
push dword [esi + 0x26c]
call fcn.0041b61e
push 0
push 0
mov edi, eax
call fcn.00430c92
test edi, edi
jns 0x40c524
push 0x43baf8
push edi
call fcn.004315b6
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.00430c92
push esi
call fcn.0041b75c
cmp dword [ebp - 8], ebx
je 0x40c53d
call fcn.0041930c
cmp dword [ebp - 4], ebx
je 0x40c554
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x40c6b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call fcn.0041c328
mov edi, eax
test edi, edi
jns 0x40c6ef
push 0x43be6a
jmp 0x40c86f
lea eax, [esi + 0xe8]
push ebx
push eax
call fcn.004214c6
mov edi, eax
test edi, edi
jns 0x40c70c
push 0x43be36
jmp 0x40c86f
cmp dword [esi + 0x268], 1
jne 0x40c760
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.0040d74e
mov edi, eax
test edi, edi
jns 0x40c737
push 0x43bdf8
jmp 0x40c86f
push ebx
call fcn.0040d96a
mov edi, eax
test edi, edi
jns 0x40c74d
push 0x43bdca
jmp 0x40c86f
cmp dword [ebp - 4], 0
je 0x40c760
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call fcn.00420786
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x40c796
push 0x43bda8
jmp 0x40c86f
cmp dword [ebp - 8], eax
jne 0x40c7ae
push 0xe0000035
push 1
call fcn.0040c35a
xor edi, edi
jmp 0x40c875
cmp dword [esi + 0xa8], eax
je 0x40c7c9
cmp dword [esi + 0x20], 2
jle 0x40c7c9
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call fcn.0041f76e
push esi
push dword [ebp + 8]
call fcn.0041ba34
mov edi, eax
test edi, edi
jns 0x40c7e2
push 0x43bb26
jmp 0x40c86f
push esi
call fcn.00417096
mov edi, eax
test edi, edi
jns 0x40c7f5
push 0x43bd8a
jmp 0x40c86f
push ebx
push dword [esi + 0x1c]
call fcn.0041d610
mov edi, eax
test edi, edi
jns 0x40c80b
push 0x43bd6a
jmp 0x40c86f
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.00411d8e
mov edi, eax
test edi, edi
jns 0x40c825
push 0x43bd44
jmp 0x40c86f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40c84d
cmp word [eax], 0
je 0x40c84d
push 0
push eax
push 0x402678
push ebx
call fcn.004159d0
mov edi, eax
test edi, edi
jns 0x40c84d
push 0x43bcf6
jmp 0x40c86f
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.0040c55c
mov edi, eax
test edi, edi
js 0x40c86a
cmp dword [ebp + 8], 0
jne 0x40c84d
jmp 0x40c877
push 0x43bce0
push edi
call fcn.004315b6
pop ecx
pop ecx
push esi
call fcn.0041b75c
lea eax, [esi + 0x78]
push eax
call fcn.004167d8
cmp dword [esi + 0x284], 0xffffffff
je 0x40c8b2
cmp dword [esi + 0x268], 1
jne 0x40c89d
mov eax, dword [esi + 0x18]
jmp 0x40c89f
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.0040dc58
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c8ce
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 4], 0
je 0x40c8dd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 4