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

Disassembly:
push 0x24
mov eax, 0x454387
call fcn.00438781
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0042286f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41b2f6
call fcn.0042286f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41b307
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41b314
or eax, 0xffffffff
jmp 0x41b470
mov ecx, esi
call fcn.0041adf2
mov dword [ebp - 0x14], eax
call fcn.0041de71
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41b392
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41b392
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41b392
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040903c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41b392
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41b392
mov ecx, ebx
call fcn.0042120f
test eax, eax
je 0x41b392
push 0
mov ecx, ebx
call fcn.0042122a
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041f8d4
push dword [ebp - 0x14]
call fcn.0041ddc9
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041b0b3
xor edi, edi
cmp eax, edi
je 0x41b3ef
test byte [esi + 0x3c], 0x10
je 0x41b3d9
push 4
pop edi
mov ecx, esi
call fcn.004210f6
test ax, 0x100
je 0x41b3cf
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041d95f
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41b3ef
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004213f9
or dword [ebp - 4], 0xffffffff
jmp 0x41b41a
cmp dword [ebp - 0x28], edi
je 0x41b428
push 1
mov ecx, ebx
call fcn.0042122a
cmp dword [ebp - 0x2c], edi
je 0x41b438
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41b451
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41b451
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041ae2c
cmp dword [esi + 0x58], edi
je 0x41b46d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00438826
ret
Function at 0x41eeac
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41eee5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ee47
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004091a3
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4209ac
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 0x4209ef
call fcn.0042286f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4209ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420a0a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00420563
test ebx, ebx
mov esi, eax
je 0x420a08
test edi, edi
je 0x420a08
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x426b09
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 0x426b4f
call fcn.0042286f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x426b4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x426b92
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 0x426b7b
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 0x426b7b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x426b8f
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 0x428620
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 0x42864e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42866c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042858a
jmp 0x42866c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42866c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042858a
test edi, edi
mov eax, edi
jne 0x428656
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x479228]
test ecx, ecx
je 0x42872f
jmp 0x42861f
ret 8
Function at 0x430856
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x474ea0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4308ee
push 0x45c754
push 4
push eax
call fcn.00438c30
push eax
call fcn.00408e7f
add esp, 0x10
push ebx
push edi
call fcn.0043de80
mov edi, dword [eax]
call fcn.0043de80
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00438c11
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0043de80
cmp dword [eax], ebx
je 0x430905
call fcn.0043de80
push dword [eax]
call fcn.0041b761
pop ecx
jmp 0x43090c
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4308a2
jmp 0x43097e
call fcn.0043de80
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x43097a
cmp dword [ebp - 0x3c], esi
jae 0x43097a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004376f0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x43096c
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43096c
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43096c
push ebx
push ebx
push esi
jmp 0x430972
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x43097c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.004377fb
add ebp, 0xe0
leave
ret
Function at 0x4377fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474ea0]
jne 0x437805
repz ret
jmp fcn.0043f3ab

Function at 0x441c91
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x475720]
je 0x441cac
inc edi
cmp edi, 0x17
jb 0x441c9d
cmp edi, 0x17
jae 0x441e2c
push ebp
push 3
call fcn.00447213
cmp eax, 1
pop ecx
je 0x441df8
push 3
call fcn.00447213
test eax, eax
pop ecx
jne 0x441ce0
cmp dword [0x474f00], 1
je 0x441df8
cmp ebx, 0xfc
je 0x441e2b
push 0x45e0cc
mov ebx, 0x314
push ebx
mov ebp, 0x479948
push ebp
call fcn.00438c30
add esp, 0xc
test eax, eax
je 0x441d16
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad35
add esp, 0x14
push 0x104
mov esi, 0x479961
push esi
push 0
mov byte [0x479a65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441d5a
push 0x45e0b4
push 0x2fb
push esi
call fcn.00438c30
add esp, 0xc
test eax, eax
je 0x441d5a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043ad35
add esp, 0x14
push esi
call fcn.00437770
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441d9f
push esi
call fcn.00437770
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x479c5c
push 0x45d964
sub ecx, eax
push ecx
push eax
call fcn.0043ba24
add esp, 0x14
test eax, eax
je 0x441d9f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad35
add esp, 0x14
jmp 0x441da1
xor esi, esi
push 0x45e0b0
push ebx
push ebp
call fcn.0043b539
add esp, 0xc
test eax, eax
je 0x441dc1
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad35
add esp, 0x14
push dword [edi*8 + 0x475724]
push ebx
push ebp
call fcn.0043b539
add esp, 0xc
test eax, eax
je 0x441de3
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad35
add esp, 0x14
push 0x12010
push 0x45e088
push ebp
call fcn.0044b8db
add esp, 0xc
jmp 0x441e2b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x441e2b
cmp ebp, 0xffffffff
je 0x441e2b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x475724]
push dword [esi]
call fcn.00437770
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x446de2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043ff4c
xor ebx, ebx
cmp dword [0x479f24], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x446eb8
push 0x45e2e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x446f98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x446f98
push eax
call fcn.0043fede
mov dword [esp], 0x45e2cc
push edi
mov dword [0x479f24], eax
call esi
push eax
call fcn.0043fede
mov dword [esp], 0x45e2b8
push edi
mov dword [0x479f28], eax
call esi
push eax
call fcn.0043fede
mov dword [0x479f2c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00438114
test eax, eax
pop ecx
pop ecx
je 0x446e86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad35
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x446eb8
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.0043fede
cmp eax, ebx
pop ecx
mov dword [0x479f34], eax
je 0x446eb8
push 0x45e284
push edi
call esi
push eax
call fcn.0043fede
pop ecx
mov dword [0x479f30], eax
mov eax, dword [0x479f30]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446f3d
cmp dword [0x479f34], ecx
je 0x446f3d
push eax
call fcn.0043ff55
push dword [0x479f34]
mov esi, eax
call fcn.0043ff55
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446f3d
cmp edi, ebx
je 0x446f3d
call esi
cmp eax, ebx
je 0x446f0a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446f0a
test byte [ebp - 0x18], 1
jne 0x446f3d
lea eax, [ebp - 0x10]
push eax
call fcn.0043814b
test eax, eax
pop ecx
je 0x446f25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad35
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446f34
or dword [ebp + 0x10], 0x200000
jmp 0x446f78
or dword [ebp + 0x10], 0x40000
jmp 0x446f78
mov eax, dword [0x479f28]
cmp eax, dword [ebp - 8]
je 0x446f78
push eax
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x446f78
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446f78
mov eax, dword [0x479f2c]
cmp eax, dword [ebp - 8]
je 0x446f78
push eax
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x446f78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479f24]
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x446f98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446f9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b8db
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043ff4c
xor ebx, ebx
cmp dword [0x47a040], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44b9b1
push 0x45f498
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44ba91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45f48c
push edi
call esi
cmp eax, ebx
je 0x44ba91
push eax
call fcn.0043fede
mov dword [esp], 0x45e2cc
push edi
mov dword [0x47a040], eax
call esi
push eax
call fcn.0043fede
mov dword [esp], 0x45e2b8
push edi
mov dword [0x47a044], eax
call esi
push eax
call fcn.0043fede
mov dword [0x47a048], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00438114
test eax, eax
pop ecx
pop ecx
je 0x44b97f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad35
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44b9b1
push 0x45f470
push edi
call esi
push eax
call fcn.0043fede
cmp eax, ebx
pop ecx
mov dword [0x47a050], eax
je 0x44b9b1
push 0x45e284
push edi
call esi
push eax
call fcn.0043fede
pop ecx
mov dword [0x47a04c], eax
mov eax, dword [0x47a04c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44ba36
cmp dword [0x47a050], ecx
je 0x44ba36
push eax
call fcn.0043ff55
push dword [0x47a050]
mov esi, eax
call fcn.0043ff55
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44ba36
cmp edi, ebx
je 0x44ba36
call esi
cmp eax, ebx
je 0x44ba03
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ba03
test byte [ebp - 0x18], 1
jne 0x44ba36
lea eax, [ebp - 0x10]
push eax
call fcn.0043814b
test eax, eax
pop ecx
je 0x44ba1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ad35
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44ba2d
or dword [ebp + 0x10], 0x200000
jmp 0x44ba71
or dword [ebp + 0x10], 0x40000
jmp 0x44ba71
mov eax, dword [0x47a044]
cmp eax, dword [ebp - 8]
je 0x44ba71
push eax
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x44ba71
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44ba71
mov eax, dword [0x47a048]
cmp eax, dword [ebp - 8]
je 0x44ba71
push eax
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x44ba71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47a040]
call fcn.0043ff55
cmp eax, ebx
pop ecx
je 0x44ba91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ba93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44fd56
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x474ea0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044fceb
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.004376f0
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 0x44fda5
cmp dword [ebp - 0x1c], 5
jb 0x44fdbd
jmp 0x44fdb9
cmp dword [ebp - 0x10], 1
jne 0x44fdbd
cmp dword [ebp - 0x1c], 4
ja 0x44fdb9
jne 0x44fdbd
cmp dword [ebp - 0x18], 0
jbe 0x44fdbd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45fd08
call fcn.0044fbbf
test eax, eax
jge 0x44fdde
mov byte [0x47764c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004377fb
add ebp, 0x78
leave
ret
Function at 0x1001266f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.10010935
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.10010896
add esp, 0xc
jmp 0x1001289d

Function at 0x10012f47
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100255a4]
jne 0x10012f51
repz ret
jmp fcn.1001574d

Function at 0x1001a70c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100255a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001671a
and dword [ebp - 0x14], 0
cmp dword [0x100272c8], 0
mov dword [ebp - 0x18], eax
jne 0x1001a7bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001a867
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001a867
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100272c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100272cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100272d0], eax
call edi
push eax
call esi
mov dword [0x100272d8], eax
test eax, eax
je 0x1001a7bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100272d4], eax
mov eax, dword [0x100272d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001a818
cmp dword [0x100272d8], ecx
je 0x1001a818
push eax
call esi
push dword [0x100272d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001a818
test ebx, ebx
je 0x1001a818
call edi
test eax, eax
je 0x1001a80f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001a80f
test byte [ebp - 8], 1
jne 0x1001a818
or dword [ebp + 0x10], 0x200000
jmp 0x1001a84b
mov eax, dword [0x100272cc]
cmp eax, dword [ebp - 0x18]
je 0x1001a84b
push eax
call esi
test eax, eax
je 0x1001a84b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001a84b
mov eax, dword [0x100272d0]
cmp eax, dword [ebp - 0x18]
je 0x1001a84b
push eax
call esi
test eax, eax
je 0x1001a84b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100272c8]
call esi
test eax, eax
je 0x1001a867
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001a869
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012f47
leave
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406860
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040699c
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b7050], 0
je 0x405e51
cmp word [0x4b732c], 0xd7b2
jne 0x405e19
cmp dword [0x4b7334], 0
jbe 0x405e19
mov eax, 0x4b7328
call dword [0x4b7344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b4030], 0
jne 0x405e6d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fdc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b4034], 0
je 0x406002
mov edx, esi
mov eax, ebx
call dword [0x4b4034]
jmp 0x406011
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b7051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fa4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4085fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408763
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406860
cmp si, word [0x4b47d0]
jb 0x408696
cmp si, word [0x4b49d0]
ja 0x408696
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408696
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b47d0]
jae 0x408670
mov edi, ebx
dec edi
jmp 0x408691
cmp si, word [ebx*8 + 0x4b47d0]
jbe 0x408680
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408691
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b47d4]
call fcn.0040850c
jmp 0x408696
cmp edi, dword [ebp - 0xc]
jae 0x40865a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408745
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408745
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a48
push dword [ebp - 0x164]
push 0x408780
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a48
push dword [ebp - 0x168]
push 0x408790
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a48
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40876a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406858
ret