joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41910b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x556e60
call fcn.0053856f
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.00406ef4
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x41916a
call fcn.00406ef4
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41917e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x41917a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x419186
or eax, 0xffffffff
jmp 0x4192d8
mov ecx, edi
call fcn.00419716
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0040e3c5
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x419212
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x419212
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x419212
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.004080c7
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x41920f
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x56592c]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x41920f
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004093a9
test eax, eax
je 0x41920f
push 0
mov ecx, esi
call fcn.0040915f
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0040e092
push ebx
call fcn.0040f742
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004190ae
test eax, eax
jne 0x41925b
cmp dword [edi + 0x9c], eax
jne 0x41925b
call fcn.00406ef4
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0040f742
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004190ae
and dword [edi + 0x9c], 0
jmp 0x419286
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x41929a
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040915f
test esi, esi
je 0x4192a7
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4192bd
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x4192bd
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x56592c]
mov ecx, edi
call esi
mov ecx, edi
call fcn.004196cd
mov eax, dword [edi + 0x68]
call fcn.005384d4
ret
Function at 0x41af99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x41afef
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x41afc8
call fcn.0040ca35
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41afdd
call fcn.0040ca35
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41afef
call fcn.0040ca35
call fcn.00406ef4
cmp dword [eax + 0x3c], 0
je 0x41b004
push esi
mov ecx, ebx
call fcn.0041a6bf
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0041b1ea
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x41b02d
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x41b039
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41f011
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x41f157
mov ecx, 0x5ae2c0
call fcn.00407e07
mov esi, eax
test esi, esi
je 0x41f14c
xor eax, eax
cmp word [esi + 8], ax
jne 0x41f116
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x41f0d2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x41f098
push str.MS_UI_Gothic
call fcn.0041f195
pop ecx
test eax, eax
je 0x41f098
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x41f0b3
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f0d2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41f0d8
push ebx
push edi
push eax
call fcn.0041eb83
add esp, 0xc
jmp 0x41f0d8
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00403ddd
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x41f151
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00407451
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x41f119
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x41f127
push edi
call fcn.0053fa10
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004033a0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.004053aa
call fcn.004053c4
int3
Function at 0x42e772
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x557fd2
call fcn.00538539
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x42e903
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x42e8d5
sub eax, 1
je 0x42e7f1
sub eax, 1
je 0x42e7c9
sub eax, 1
je 0x42e7f1
push 0x5671c6
mov ecx, edi
call fcn.00402dc0
mov eax, edi
call fcn.005384e8
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x42e7b3
lea eax, [ebp - 0x28c]
push eax
jmp 0x42e7b8
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x42e7b3
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.00415158
test eax, eax
je 0x42e7b3
lea ecx, [ebp - 0x3a0]
call fcn.00402e60
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x42e88b
test byte [ebp - 0x21c], 0x18
jne 0x42e8ad
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x56592c]
mov ecx, ebx
call esi
jmp 0x42e8ad
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x56592c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.004031d0
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004023c0
jmp 0x42e7bf
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x42e7b3
lea eax, [ebp - 0x390]
jmp 0x42e7ee
call fcn.004053aa
int3

Function at 0x42ea7b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0047ebe0
call fcn.00406f42
cmp dword [eax + 0x14], 0
jne 0x42ea96
mov ecx, esi
pop esi
jmp fcn.0042dd94
pop esi
ret

Function at 0x42f411
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x5aedcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x42f47b
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x42f460
lea eax, [ebp - 0x158]
push eax
jmp 0x42f465
push 0x56ce00
call fcn.00402dc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00537f32
leave
ret 8
call fcn.004053aa
int3

Function at 0x42f960
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402c30
call fcn.00406f42
cmp dword [eax + 0x14], 0
jne 0x42f97b
mov ecx, esi
pop esi
jmp fcn.0042f1bb
pop esi
ret
Function at 0x4389cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4389e8
call fcn.00406ef4
mov esi, dword [eax + 0xc]
push 0x56e368
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x438a2a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438a2a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x438a2a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00438a33
jmp 0x438a2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d5477
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d54a4
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4d54b9
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d54b9
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0040f742
jmp 0x4d558a
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0040f742
cmp eax, edi
jne 0x4d5594
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4d5526
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4d556a
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4d5594
cmp eax, 0x205
je 0x4d5594
cmp eax, 0x201
je 0x4d5594
cmp eax, 0x204
je 0x4d5594
cmp eax, 0x100
jne 0x4d5552
cmp dword [ebp - 0x18], 0x1b
je 0x4d5594
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4d558a
ja 0x4d5583
cmp eax, dword [0x5b8260]
jbe 0x4d558a
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4d54db
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d596c
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4d59a2
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.004080c7
test eax, eax
je 0x4d598a
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4ef9eb
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00547bd2
pop ecx
test eax, eax
jne 0x4efa2d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00407487
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ef9f3
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x4f6f32
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x55b22f
call fcn.00538506
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x4f7018
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4f7018
cmp esi, 0x43
je 0x4f6f74
cmp esi, 0x2d
jne 0x4f7018
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f7018
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402e60
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.004079bb
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4f7006
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4f7006
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004023c0
push ebx
mov ecx, edi
call fcn.004f43b6
call fcn.005384d4
ret 4

Function at 0x538ed5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x538f14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x538f14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x538f14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x538f14
cmp dword [ecx + 0x74], 0xe
jbe 0x538f14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x54c24f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x590890
push 0x590888
push str.FlsAlloc
push 0x1f
call fcn.0054c0ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54c283
push dword [ebp + 8]
mov ecx, esi
call dword [0x56592c]
call esi
jmp 0x54c289
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x54c2cd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5908a0
push 0x590898
push str.FlsGetValue
push 0x21
call fcn.0054c0ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54c304
push dword [ebp + 8]
mov ecx, esi
call dword [0x56592c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x54c30c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5908a8
push 0x5908a0
push str.FlsSetValue
push 0x22
call fcn.0054c0ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54c346
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x56592c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x54f540
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5aedcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x54f58b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0054f6db
test al, al
jne 0x54f585
sub edx, 2
cmp edx, edi
jne 0x54f56b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x54f5ad
lea eax, [edi + 2]
cmp edx, eax
je 0x54f5ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0054f48c
add esp, 0x10
jmp 0x54f6a7
push esi
lea ecx, [ebp - 0x255]
call fcn.0054f6db
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54f5f0
push dword [ebp - 0x25c]
jmp 0x54f59d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x54f62d
cmp word [ebp - 0x226], 0
je 0x54f64e
cmp word [ebp - 0x226], ax
jne 0x54f62d
cmp word [ebp - 0x224], 0
je 0x54f64e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0054f48c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x54f69a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x54f607
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x54f682
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x54f6a7
push 0x54f2bc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00554710
add esp, 0x10
jmp 0x54f677
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00537f32
leave
ret

Function at 0x550066
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x550077
pop esi
ret
push ebx
push edi
push esi
call fcn.0055002f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0054a365
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x55009f
push ebx
push esi
push edi
call fcn.00539a10
add esp, 0xc
push 0
call fcn.0054a0dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x55046f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005500b4
Function at 0x5557e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55580d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55580d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1004d37b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
lea esp, [esp + 8]
jne 0x10049c9e
not di
btc edi, edx
mov edi, dword [edx + 0x24]
clc
pushal
pushal
add edi, eax
mov byte [esp], ah
movzx ecx, word [edi + ecx*2]
add esp, 0x40
pushal
lea esp, [esp + 0x24]
ja 0x1005cf34
jb 0x1005eefc
test bl, dh
cmc
cmp byte [edi - 1], 0
push 0x4c0d6225
jmp 0x1004615a

Function at 0x1005cf58
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [edx + 0x24]
jb 0x1005b660
pushfd
pushfd
add edi, eax
clc
cmc
pushfd
pushfd
movzx ecx, word [edi + ecx*2]
sar edi, 1
rcr di, cl
cmp bl, 0x37
push 0x186b550e
cmp dx, dx
clc
add edi, eax
mov byte [esp], 0xd6
bt esi, 0x1f
pushal
pushal
movzx ecx, word [edi + ecx*2]
adc di, cx
add di, 0x2d36
mov edi, dword [edx + 0x1c]
mov byte [esp], dl
cmc
call fcn.1005b3b1
mov dword [ebp - 8], ecx
push 0x7651e467
pushfd
pushfd
mov byte [esp], dl
lea esp, [esp + 0x10]
jmp 0x10061a36
mov edi, dword [edx + 0x1c]
pushfd
mov word [esp + 4], di
add edi, eax
push esi
push 0xcc949cf7
call fcn.10061965
pushal
mov byte [esp], 0xb7
jmp 0x10062202
pushal
push ebp
lea esp, [esp + 0x28]
jb 0x1005eefc
test cl, bh
bt bp, bx
stc
test bl, ch
cmp byte [edi - 1], 0
pushfd
push 0x1910ab59
pushfd
pushal
lea esp, [esp + 0x2c]
jne 0x10049c9e
ror di, 0xf
cmp cl, 1
clc
jmp 0x1005f800
pushal
push dword [esp]
lea esp, [esp + 0x44]
jne 0x10049c9e
add di, 0xcfab
mov di, cx
bsf edi, esp
jmp 0x1005ae3d
mov edi, dword [edx + 0x24]
stc
add edi, eax
push 0x75ca27a9
movzx ecx, word [edi + ecx*2]
jmp 0x1005cf1e
lea esp, [esp + 0x20]
jb 0x1005eefc
clc
cmp byte [edi - 1], 0
pushal
jmp 0x1005d92a

Function at 0x10060095
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1004622b
lea edi, [edi + 1]
movsx eax, al
mov eax, dword [esp + 4]
mov byte [esp], bl
lea esp, [esp + 8]
jl 0x10046123
jmp 0x10061947
Function at 0x4040a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov edi, eax
test edi, edi
je 0x4040d4
mov esi, dword [edi]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::STabCtrl::GetClassNameW_void_]
push eax
mov ecx, edi
call dword [esi + 4]
test eax, eax
je 0x4040d4
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingletonPtr_void_]
test eax, eax
je 0x4040f0
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ILog4zManager____thiscall_SOUI::SApplication::GetLogManager_void_]
mov esi, eax
jmp 0x4040f2
xor esi, esi
push 0x2800
call fcn.004998b1
add esp, 4
mov edi, eax
push 0x5000
call fcn.004998b1
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_static_wchar_t_const____cdecl_SOUI::STabCtrl::GetClassNameW_void_]
push eax
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402c10
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x404160
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.00499896
add esp, 4
test esi, esi
je 0x4041b5
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x4041b5
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.00499896
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.004998b1
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_souiSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402c70
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00499896
add esp, 4
push edi
call fcn.00499896
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8