joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5331f0
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
sub esp, 0x188
push ebp
call fcn.00533170
mov ebp, eax
test ebp, ebp
je 0x53332b
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x533235
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x533231
push esi
call ebx
test eax, eax
je 0x533235
mov esi, eax
jmp 0x533221
push 0x100
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x533321
push 0x80
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x533321
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x533321
test esi, esi
je 0x533321
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
push 0
push ebp
mov esi, eax
call edi
test ebx, ebx
mov edi, eax
je 0x533321
cmp edi, esi
je 0x533321
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x5332dc
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x188
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2000
call esi
push 2
lea edx, [esp + 0x18]
push edx
push 0
push 0x2001
mov dword [esp + 0x24], 0
call esi
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001
call esi
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x188
ret

Function at 0x534b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58e978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 1
mov esi, ecx
push str.UnitValue
mov dword [esp + 0x10], esi
call fcn.0050f1b0
lea edi, [esi + 0x26]
push 0x5d0f68
mov ecx, edi
mov dword [esp + 0x30], 0
mov dword [esi], vtable.ScCore::UnitValueObject.1.0
mov dword [esi + 0x12], vtable.ScCore::UnitValueObject.0
call fcn.00513050
push 0x2076616c
mov ecx, esi
mov byte [esp + 0x30], 1
mov dword [esi + 0xc], edi
call fcn.00534930
mov edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x534c07
lea ecx, [esp + 0xc]
call fcn.0053ac20
push eax
mov ecx, edi
call fcn.0051aa50
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x535b60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
sete bl
test bl, bl
je 0x535bdc
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
sete bl
test bl, bl
je 0x535bac
call fcn.00518bb0
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.005162a0
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x535bd8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test bl, bl
jne 0x535be3
mov ecx, esi
call fcn.005150c0
mov al, bl
pop ebx
add esp, 0x10c
ret
Function at 0x536f50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.00488910
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 4]
add esp, 0xc
lea eax, [esp]
add edx, 0xc
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x3c
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne cl
push ecx
call fcn.00535c50
add esp, 0x40
ret

Function at 0x537650
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58ec13
push eax
mov dword fs:[0], esp
sub esp, 0x14
cmp byte [0x639c60], 0
push edi
mov edi, 0x34
jne 0x537686
push 0
mov byte [0x639c60], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x5d5160
push 1
push 0
push 0x5d5170
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x537794
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00536ca0
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], 0
call fcn.00535dd0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.005144a0
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx]
push 0
lea ecx, [esp + 0x18]
call fcn.00515960
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0x50]
push edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x5d5970
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x537776
mov esi, dword [esp + 0x2c]
add esi, 4
push esi
lea ecx, [esp + 0xc]
call fcn.00515680
push str..LNK
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.005161b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
add eax, 0xc
push 1
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
test eax, eax
jl 0x53775c
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00514cd0
xor edi, edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.005144a0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.005144a0
pop esi
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x539460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58efd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0053f930
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
lea ecx, [esi + 0x32]
mov byte [esp + 0x14], 1
call fcn.0052d6c0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 2
call fcn.00520ed0
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 3
call fcn.00514470
fld qword [0x5d1150]
push 0x19000
fstp qword [esi + 0x5c]
mov ecx, esi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], 0x696e6368
mov dword [esi + 0x64], ebx
mov byte [esi + 0x68], bl
call fcn.00539410
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5397a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58f060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.005182a0
lea ebx, [esi + 8]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x1c], ebp
mov dword [esi], vtable.ScCore::UniversalEncoder.0
call fcn.00514470
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edi
push edi
add ecx, 0xc
push ecx
push str._ls_CP_ld_WINDOWS__ld
push ebx
mov byte [esp + 0x30], 1
call fcn.00517c90
mov edx, dword [ebx]
add esp, 0x14
cmp word [edx + 0xc], 0x2c
jne 0x539811
push 1
push ebp
mov ecx, ebx
call fcn.00515ce0
mov eax, dword [esp + 0x28]
push 0x10
mov dword [esi + 4], eax
call fcn.00514090
add esp, 4
cmp eax, ebp
je 0x53982e
mov dword [eax], vtable.ScCore::EncoderData.0
jmp 0x539830
xor eax, eax
cmp edi, 0xc42c
mov dword [esi + 0xc], eax
mov dword [eax + 4], edi
mov ecx, dword [esi + 0xc]
mov dword [ecx + 8], 9
mov edx, dword [esi + 0xc]
mov dword [edx + 0xc], ebp
je 0x5398a6
cmp edi, 0xc42d
je 0x5398a6
cmp edi, 0xc42e
je 0x5398a6
cmp edi, 0xc431
je 0x5398a6
cmp edi, 0xc433
je 0x5398a6
cmp edi, 0xc435
je 0x5398a6
cmp edi, 0xcec8
je 0x5398a6
cmp edi, 0xd698
je 0x5398a6
cmp edi, 0xdeaa
jl 0x539896
cmp edi, 0xdeb3
jle 0x5398a6
cmp edi, 0xfde8
je 0x5398a6
cmp edi, 0xfde9
jne 0x5398b2
mov eax, dword [esi + 0xc]
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0xc]
mov dword [ecx + 8], ebp
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x543170
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x543196
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x543180
ret
Function at 0x566870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test byte [0x639c98], 1
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 1
jne 0x5668d0
or dword [0x639c98], edi
mov dword [0x623a10], 0x565d50
mov dword [0x623a14], 0x5646d0
mov dword [0x623a18], 0x564470
mov dword [0x623a1c], 0x564220
mov dword [0x623a20], 0x55a950
mov dword [0x623a24], 0x5595f0
mov dword [0x623a28], 0x557a70
mov eax, dword [esi + 0x78]
sub eax, 4
cmp eax, dword [esi + 0x74]
jae 0x5668e6
call fcn.005623a0
mov eax, dword [esi + 0x78]
sub eax, 4
xor ebx, ebx
cmp eax, ebx
je 0x5668f2
mov dword [eax], 2
cmp dword [esi + 0x3c], ebx
mov dword [esi + 0x78], eax
mov ebp, 0x2000
je 0x5669a7
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
mov eax, dword [ecx*4 + 0x6239b8]
add dword [esi + 0x44], edi
mov ecx, esi
call eax
test al, al
jne 0x56699e
mov edx, dword [esi + 0x44]
cmp edx, dword [esi + 0x48]
jle 0x566934
mov eax, dword [esi + 0x38]
push 0xc
push eax
call fcn.0055ed30
add esp, 8
test dword [esi + 0x40], ebp
je 0x566979
mov eax, dword [esi + 0x1c]
cmp eax, 0xfffffffe
je 0x56694f
cmp eax, ebx
je 0x56694a
cmp eax, dword [esi + 0x14]
je 0x56694f
call fcn.00488b7b
mov ecx, dword [esi + 0x20]
cmp ecx, dword [esi + 0x18]
jne 0x566979
mov eax, dword [esi + 0x1c]
cmp eax, 0xfffffffe
je 0x56696d
cmp eax, ebx
je 0x566968
cmp eax, dword [esi + 0x2c]
je 0x56696d
call fcn.00488b7b
mov edx, dword [esi + 0x20]
cmp edx, dword [esi + 0x30]
je 0x566979
mov byte [esi + 0x4d], 1
mov byte [esi + 0x7c], bl
lea esp, [esp]
mov eax, dword [esi + 0x78]
mov ecx, dword [eax]
movzx edx, byte [esi + 0x7c]
mov eax, dword [ecx*4 + 0x5d49c4]
push edx
mov ecx, esi
call eax
test al, al
jne 0x566980
cmp dword [esi + 0x3c], ebx
je 0x5669d2
cmp dword [esi + 0x3c], ebx
jne 0x566903
mov byte [esi + 0x7c], 1
jmp 0x5669b0
mov eax, dword [esi + 0x78]
mov ecx, dword [eax]
movzx edx, byte [esi + 0x7c]
mov eax, dword [ecx*4 + 0x5d49c4]
push edx
mov ecx, esi
call eax
test al, al
jne 0x5669b0
cmp dword [esi + 0x3c], ebx
jne 0x566903
mov al, byte [esi + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x56988d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x61f060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00569822
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00488910
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5698dc
cmp dword [ebp - 0x1c], 5
jb 0x5698f4
jmp 0x5698f0
cmp dword [ebp - 0x10], 1
jne 0x5698f4
cmp dword [ebp - 0x1c], 4
ja 0x5698f0
jne 0x5698f4
cmp dword [ebp - 0x18], 0
jbe 0x5698f4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5d5a84
call fcn.00569713
test eax, eax
jge 0x569915
mov byte [0x624520], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00488a42
add ebp, 0x78
leave
ret
Function at 0x56c2f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x10
push edi
push 0x63a028
push 0x56c1b0
call fcn.0056c520
mov edi, dword [0x63a024]
add esp, 8
mov ecx, edi
mov dword [esp + 4], edi
call fcn.0056bd30
mov eax, dword [0x624000]
cmp eax, 0xffffffff
mov byte [esp + 8], 1
jne 0x56c331
mov ecx, edi
pop edi
add esp, 0x10
jmp fcn.0056bd50
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x56c3b2
mov eax, dword [0x624000]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x56c3b2
sub dword [0x63a02c], 1
lea ecx, [esp + 8]
call fcn.0044b917
cmp dword [esi + 8], 0
je 0x56c397
mov eax, dword [esi + 4]
mov edi, dword [eax]
cmp edi, eax
jne 0x56c375
call fcn.00488b7b
mov edi, dword [edi + 8]
test edi, edi
je 0x56c37e
call edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
push eax
push esi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0056c240
cmp dword [esi + 8], 0
jne 0x56c367
mov ecx, esi
call fcn.0056c2a0
push esi
call fcn.00469949
add esp, 4
cmp byte [esp + 0xc], 0
je 0x56c3be
mov edi, dword [esp + 8]
pop esi
mov ecx, edi
pop edi
add esp, 0x10
jmp fcn.0056bd50
pop esi
pop edi
add esp, 0x10
ret
Function at 0x56c520
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59060b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x61f060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
push 1
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x56c673
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0040b2dd
lea eax, [ebp - 0xb0]
push str.2AC1A572DB6944B0A65C38C4140AF2F4
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a12d
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x56c59c
xor eax, eax
jmp 0x56c5a3
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add eax, esi
mov edx, dword [eax + 0x10]
and edx, 0xfffff9ff
or edx, 0x800
push edi
mov dword [eax + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.00425db5
mov ecx, eax
call fcn.0056c3d0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00404d91
cmp dword [eax + 0x18], 0x10
jb 0x56c5e5
mov eax, dword [eax + 4]
jmp 0x56c5e8
add eax, 4
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp - 0x18], 0x10
mov esi, eax
mov dword [ebp - 0x14], esi
jb 0x56c608
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00469949
add esp, 4
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x56c643
mov byte [ebp - 4], 1
call dword [ebp + 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ebb
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], vtable.std::ios_base.0
call fcn.00569f7a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x446588]
xor eax, esp
mov dword [esp + 0x160], eax
cmp dword [esp + 0x168], 0
je 0x40120f
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
jmp 0x40121e
push 0x4000
push 0x160
lea ecx, [esp + 8]
push ecx
push 0
push 0x437608
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00421566
add esp, 0x164
ret 4

Function at 0x4012c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x446588]
xor eax, esp
mov dword [esp + 0x160], eax
cmp dword [esp + 0x168], 0
je 0x4012f6
push 0x111
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push str.Doesnt_matter
jmp 0x40130c
push 0x110
push 0x160
lea ecx, [esp + 8]
push ecx
push 0x10
push str.Does_not_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x160]
mov eax, dword [esp]
xor ecx, esp
call fcn.00421566
add esp, 0x164
ret 4

Function at 0x401330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401349
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401384
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401380
lea ebx, [ebx]
cmp esi, eax
jae 0x401384
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401370
cmp esi, eax
jb 0x40138a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x409a9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x409ae5
call fcn.004108da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409ae5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x409b28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x409b11
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x409b11
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x409b25
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f5af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f5f2
call fcn.004108da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f5f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f60d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f166
test ebx, ebx
mov esi, eax
je 0x40f60b
test edi, edi
je 0x40f60b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411cc1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x411cef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411d0d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411c2b
jmp 0x411d0d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411d0d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411c2b
test edi, edi
mov eax, edi
jne 0x411cf7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x449550]
test ecx, ecx
je 0x411dd0
jmp 0x411cc0
ret 8

Function at 0x421566
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446588]
jne 0x421570
repz ret
jmp fcn.00426dc5
Function at 0x42e3f2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00427deb
xor ebx, ebx
cmp dword [0x44a2ec], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e4c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42e432
xor eax, eax
jmp 0x42e58b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ba38
push edi
call esi
cmp eax, ebx
je 0x42e42b
push eax
call fcn.00427d88
mov dword [esp], 0x43ba28
push edi
mov dword [0x44a2ec], eax
call esi
push eax
call fcn.00427d88
mov dword [esp], 0x43ba14
push edi
mov dword [0x44a2f0], eax
call esi
push eax
call fcn.00427d88
mov dword [0x44a2f4], eax
lea eax, [ebp - 8]
push eax
call fcn.004229a8
test eax, eax
pop ecx
pop ecx
je 0x42e495
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426932
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e4c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427d88
cmp eax, ebx
pop ecx
mov dword [0x44a2fc], eax
je 0x42e4c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427d88
pop ecx
mov dword [0x44a2f8], eax
mov eax, dword [0x44a2f8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e540
cmp dword [0x44a2fc], esi
je 0x42e540
push eax
call fcn.00427df4
pop ecx
call eax
cmp eax, ebx
je 0x42e50d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44a2fc]
call fcn.00427df4
pop ecx
call eax
test eax, eax
je 0x42e50d
test byte [ebp - 0x18], 1
jne 0x42e540
lea eax, [ebp - 0xc]
push eax
call fcn.004229df
test eax, eax
pop ecx
je 0x42e528
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426932
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e537
or dword [ebp + 0x10], 0x200000
jmp 0x42e571
or dword [ebp + 0x10], 0x40000
jmp 0x42e571
mov eax, dword [0x44a2f0]
cmp eax, esi
je 0x42e571
push eax
call fcn.00427df4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e571
mov eax, dword [0x44a2f4]
cmp eax, esi
je 0x42e571
push dword [ebp - 4]
push eax
call fcn.00427df4
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 [0x44a2ec]
call fcn.00427df4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434710
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x446588]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004346a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00422cb0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43475f
cmp dword [ebp - 0x1c], 5
jb 0x434777
jmp 0x434773
cmp dword [ebp - 0x10], 1
jne 0x434777
cmp dword [ebp - 0x1c], 4
ja 0x434773
jne 0x434777
cmp dword [ebp - 0x18], 0
jbe 0x434777
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43cc10
call fcn.00434579
test eax, eax
jge 0x434798
mov byte [0x447960], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421566
add ebp, 0x78
leave
ret