joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2d4
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffccc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x334], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040565c
xor eax, eax
push ebp
push 0x41a439
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.00419f7c
mov edx, dword [ebp - 0x334]
lea eax, [ebp - 4]
call fcn.00405968
lea eax, [ebp - 0x320]
xor ecx, ecx
mov edx, 0x44
call fcn.00403f28
mov dword [ebp - 0x320], 0x44
mov dword [ebp - 0x2f4], 1
mov word [ebp - 0x2f0], 0
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x320]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405c48
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41a418
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 0x330]
call fcn.0041a108
test al, al
je 0x41a40a
mov dword [ebp - 0x2dc], 0x10007
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [ebp - 0x32c]
push eax
call dword [0x446f30]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
mov eax, dword [ebp - 0x330]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [ebp - 0x32c]
push eax
call dword [0x446f34]
mov eax, dword [ebp - 0x32c]
push eax
call sub.kernel32.dll_ResumeThread
mov ebx, dword [ebp - 0x330]
jmp 0x41a418
push 0
mov eax, dword [ebp - 0x330]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a440
lea eax, [ebp - 0x334]
call fcn.0040558c
lea eax, [ebp - 4]
call fcn.0040558c
ret

Function at 0x41a740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x41a7da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x1000
push 0x104
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x104
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.00405a58
mov edx, dword [ebp - 4]
mov eax, 0x41a7f8
call fcn.004060d0
test eax, eax
jle 0x41a7ba
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.00405a58
mov edx, dword [ebp - 8]
mov eax, 0x41a808
call fcn.004060d0
test eax, eax
jg 0x41a7bf
mov ebx, 0x41a80c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a7e1
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055f8
ret
Function at 0x41a810
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040565c
xor eax, eax
push ebp
push 0x41a91f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a84d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x41a864
lea eax, [ebp - 4]
mov edx, 0x41a93c
call fcn.00405aec
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x41a94c
mov edx, dword [ebp - 4]
call fcn.00405b44
mov eax, dword [ebp - 0x14c]
call fcn.00405c48
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x41a8f9
lea eax, [ebp - 8]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
push 0
call fcn.00405acc
mov eax, dword [ebp - 8]
mov edx, 0x41a960
call fcn.00405bc8
je 0x41a8dc
mov eax, dword [ebp - 8]
mov edx, 0x41a970
call fcn.00405bc8
je 0x41a8dc
mov eax, dword [ebp - 0x148]
and eax, 0x10
cmp eax, 0x10
setne bl
test bl, bl
jne 0x41a8f3
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x41a896
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a926
lea eax, [ebp - 0x14c]
call fcn.0040558c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055f8
ret

Function at 0x41a998
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x41aad0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41aadc
push 0
push 0
call fcn.00408a5c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x41aab5
push 0x41aafc
lea eax, [ebp - 4]
push eax
call fcn.00419f7c
mov edx, dword [ebp - 4]
mov eax, 0x446f50
call fcn.00405920
jmp 0x41a9f4
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x446f50]
call fcn.0041a810
test al, al
je 0x41a9ea
mov eax, dword [0x444c44]
push eax
call fcn.0041a740
mov edx, eax
mov eax, 0x446f54
mov ecx, 0
call fcn.00405a58
mov eax, dword [0x446f54]
call fcn.00405c48
push eax
call sub.kernel32.dll_LoadLibraryA_1
mov dword [0x446f4c], eax
mov eax, dword [0x4417a8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00419f7c
mov eax, dword [ebp - 8]
mov edx, dword [0x441888]
call fcn.0041a2d4
mov eax, dword [0x4417a8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00419f7c
mov eax, dword [ebp - 0xc]
mov edx, dword [0x4417ec]
call fcn.0041a2d4
jmp 0x41aa76
push 0x64
call sub.kernel32.dll_Sleep_2
push 0x41ab14
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
je 0x41aa6f
jmp 0x41aa8e
push 0x64
call sub.kernel32.dll_Sleep_2
push 0x41ab28
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
je 0x41aa87
mov eax, dword [0x441934]
push eax
push 0
push 0
push 0x41a974
push 0
push 0
call sub.kernel32.dll_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aad7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004055f8
ret
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push 0
push section..data
push str.FASM
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402650
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b80
push 0x406198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x420d78], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x420d74], ecx
shl ecx, 8
add ecx, edx
mov dword [0x420d70], ecx
shr eax, 0x10
mov dword [0x420d6c], eax
call fcn.00406150
test eax, eax
jne 0x4026ba
push 0x1c
call fcn.00402830
add esp, 4
call fcn.00404980
test eax, eax
jne 0x4026cd
push 0x10
call fcn.00402830
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405f40
call fcn.00403570
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x422494], eax
call fcn.00405de0
mov dword [0x420d5c], eax
test eax, eax
je 0x402700
mov eax, dword [0x422494]
test eax, eax
jne 0x40270a
push 0xffffffffffffffff
call fcn.00402950
add esp, 4
call fcn.00405b30
call fcn.00405a40
call fcn.00402920
mov esi, dword [0x422494]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4027e9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402751
test al, al
je 0x402751
and eax, 0xff
push eax
call fcn.004059e0
add esp, 4
test eax, eax
je 0x40272b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40272b
cmp byte [esi], 0x22
jne 0x40275a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40276a
cmp al, 0x20
ja 0x40276a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40275a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40278b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402790
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402950
jmp 0x4027ce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40275a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4027e9

Function at 0x402830
Capabilities:
Terminate process

Disassembly:
cmp dword [0x420d64], 1
jne 0x40283e
call fcn.00406270
mov eax, dword [esp + 4]
push eax
call fcn.004062b0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402990
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00402a50
mov eax, dword [0x420da8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4029b4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x420da4], 1
mov byte [0x420da0], bl
jne 0x402a0e
mov ecx, dword [0x42248c]
test ecx, ecx
je 0x4029fc
mov esi, dword [0x422488]
sub esi, 4
cmp esi, ecx
jb 0x4029fc
mov eax, dword [esi]
test eax, eax
je 0x4029f5
call eax
mov ecx, dword [0x42248c]
sub esi, 4
cmp esi, ecx
jae 0x4029e7
push 0x41b098
push 0x41b090
call fcn.00402a70
add esp, 8
push 0x41b0a4
push 0x41b09c
call fcn.00402a70
add esp, 8
test ebx, ebx
je 0x402a2d
call fcn.00402a60
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x420da8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404980
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00406490
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41bae0], eax
je 0x4049d8
push 0x74
push 1
call fcn.00406e30
mov esi, eax
add esp, 8
test esi, esi
je 0x4049d8
mov eax, dword [0x41bae0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4049d8
push esi
call fcn.004049e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x404a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x41bae0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x404a6e
push 0x74
push 1
call fcn.00406e30
mov esi, eax
add esp, 8
test esi, esi
je 0x404a64
mov ecx, dword [0x41bae0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404a64
push esi
call fcn.004049e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00402800
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x405de0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x421120]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405e22
call edi
mov esi, eax
test esi, esi
je 0x405e0c
mov eax, 1
jmp 0x405e1d
call ebp
mov ebx, eax
test ebx, ebx
je 0x405f2f
mov eax, 2
mov dword [0x421120], eax
cmp eax, 1
jne 0x405ec2
test esi, esi
jne 0x405e3b
call edi
mov esi, eax
test esi, esi
je 0x405f2f
cmp word [esi], 0
mov eax, esi
je 0x405e55
add eax, 2
cmp word [eax], 0
jne 0x405e43
add eax, 2
cmp word [eax], 0
jne 0x405e43
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405eb4
push edi
call fcn.00402c10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405eb4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405ea6
push ebx
call fcn.00402a90
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x405f2f
test ebx, ebx
jne 0x405ed3
call ebp
mov ebx, eax
test ebx, ebx
je 0x405f2f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405eeb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405edb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405edb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402c10
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405f0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4062b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41bba0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4062d4
add eax, 8
inc ebp
cmp eax, 0x41bc30
jb 0x4062c5
cmp ecx, dword [ebp*8 + 0x41bba0]
jne 0x40647b
mov eax, dword [0x420d64]
cmp eax, 1
je 0x40643d
test eax, eax
jne 0x406300
cmp dword [0x41b794], 1
je 0x40643d
cmp ecx, 0xfc
je 0x40647b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40633b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406384
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41709c
add ebx, ecx
push ebx
call fcn.00407fd0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41707c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41bba4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407f40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x422380]
test eax, eax
je 0x40644e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x406458
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41bba4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x409cd0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x421338]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x409d18
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409cfc
mov eax, 1
jmp 0x409d13
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x409df8
mov eax, 2
mov dword [0x421338], eax
cmp eax, 2
jne 0x409d38
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x409e0a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409d53
mov ecx, dword [0x4211b0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x409d72
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402c10
mov esi, eax
add esp, 4
test esi, esi
jne 0x409d89
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409def
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x409dd0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x409def
push esi
call fcn.00402a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x409dff
push esi
call fcn.00402a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b84b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x414270
call fcn.004028b0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004135b4
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40b88a
call fcn.004135b4
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b898
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b8a6
or eax, 0xffffffff
jmp 0x40b98e
mov ecx, esi
call fcn.0040b7c1
mov dword [ebp - 0x14], eax
call fcn.0040c640
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40b8dd
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b8dd
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040c5f4
push dword [ebp - 0x14]
call fcn.0040c142
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040b559
cmp eax, edi
je 0x40b950
test byte [esi + 0x24], 0x10
je 0x40b91e
push 4
mov ecx, esi
pop ebx
call fcn.0040b1ff
test ah, 1
je 0x40b916
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040e3cf
cmp dword [esi + 0x1c], edi
je 0x40b950
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040b28b
jmp 0x40b950
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40b964
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40b97d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40b97d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040b7fb
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40e27d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40e2bf
call fcn.004135b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40e2bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40e2b6
xor eax, eax
jmp 0x40e2c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040e2cd
pop edi
pop esi
pop ebx
ret 4
Function at 0x413132
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 0x413160
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41317e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413098
jmp 0x41317e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41317e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413098
test edi, edi
mov eax, edi
jne 0x413168
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x413460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x413482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413478
mov eax, 1
add ebx, ebx
jne 0x41349b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413490
jne 0x4134ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413490
xor ecx, ecx
sub eax, 3
jb 0x4134c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413532
mov ebp, eax
add ebx, ebx
jne 0x4134cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4134d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4134fc
inc ecx
add ebx, ebx
jne 0x4134e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4134dd
jne 0x4134f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4134dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41351c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41350d
jmp 0x41347e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41351c
add edi, ecx
jmp 0x41347e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41353a
cmp byte [edi], 5
jne 0x41353a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41353f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x4135ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18ea8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18f5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41356c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18f60]
or eax, eax
je 0x4135a8
mov dword [ebx], eax
add ebx, 4
jmp 0x413589
call dword [esi + 0x18f70]
mov ebp, dword [esi + 0x18f64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4135e2
sub esp, 0xffffff80
jmp section.UPX0