joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524440
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x524450
mov esi, 1
push esi
call fcn.0053ae27
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5244a2
call fcn.0053c7c2
mov edi, eax
call fcn.00526fa0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x524486
mov edx, dword [0x6e2f98]
mov dword [0x6e2f94], edx
test al, 0x18
je 0x524497
push esi
push 0x24
push 5
call fcn.005277f0
add esp, 0xc
test edi, edi
je 0x5244bd
push 1
call fcn.0053c49d
test byte [esp + 0x14], 0x20
je 0x5244bd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x5255c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x5256b4
cmp byte [edx], 0
je 0x5256a7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00525540
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00525540
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005254b0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x525671
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.005254f0
fmul qword [0x6c53b8]
push ecx
fstp qword [esp]
call fcn.00539708
fadd qword [0x6c53b0]
add esp, 8
call fcn.005397d8
mov byte [ebx], al
inc ebx
dec edi
jne 0x525644
lea ecx, [esp + 0x20]
push ecx
call fcn.005254f0
fmul qword [0x6c53b8]
push ecx
fstp qword [esp]
call fcn.00539708
add esp, 8
call fcn.005397d8
cmp esi, ebx
je 0x52569d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x525696
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x525a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x525ab0
mov byte [edi + esi], 2
jmp 0x525ae7
test al, 4
je 0x525aba
mov byte [edi + esi], 0xd
jmp 0x525ae7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x525ad3
mov byte [edi + esi], 2
jmp 0x525ae7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x525ae3
mov byte [edi + esi], 0x19
jmp 0x525ae7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x525a97
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x525b5b
cmp dl, 0xd
je 0x525b5b
xor edx, edx
jmp 0x525b60
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x525b4b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x525b80
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00524440
mov esi, eax
add esp, 8
test esi, esi
jne 0x525ba1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.005271e0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x525bc6
push esi
call fcn.005244d0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00546b89
push ebx
push edi
mov ebp, eax
call fcn.00527250
push 0x525c00
push ebp
push esi
call fcn.00528580
push esi
call fcn.005244d0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x526f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x7d7d00
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d7c3c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x526f8b
push 0x4c
push 1
call fcn.0053c333
mov esi, eax
add esp, 8
test esi, esi
jne 0x526f53
push 0x7d7d00
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x7d7c3c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x7ccfe4]
inc eax
lea edx, [esi + 0xc]
mov dword [0x7ccfe4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.0052aa60
add esp, 8
mov byte [esi + 0x3c], 1
push 0x7d7d00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x527410
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0053c7c2
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00546b89
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x52750a
call fcn.0053c7c2
cmp dword [eax], 0
je 0x527457
call fcn.0053c7c2
mov ebp, dword [eax]
jmp 0x52745a
or ebp, 0xffffffff
call fcn.00526fa0
test esi, esi
mov dword [eax], ebp
jne 0x52746f
call fcn.0053c7c2
cmp dword [eax], 4
je 0x5274bf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5274a2
cmp esi, 0xffffffff
je 0x5274e4
test al, 6
je 0x5274a2
call fcn.00526fa0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0052aa90
add esp, 4
push eax
push 0x24
push 9
call fcn.005277f0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x527502
test al, 6
je 0x5274b0
test ah, 2
je 0x527502
test esi, esi
jbe 0x52750e
test ah, 2
je 0x52750e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0053c7c2
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00546b89
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x52750a
jmp 0x527444
call fcn.00526fa0
mov eax, dword [eax]
push eax
push ebx
call fcn.0052aa90
add esp, 4
push eax
push 0x24
push 2
call fcn.005277f0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x52751b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x527524
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x53d964
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53d984
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053c74f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x53d9a7
test byte [esp + 8], 2
je 0x53d9a7
call fcn.0053c7c2
mov dword [eax], 0xd
call fcn.0053c7cb
mov dword [eax], 5
jmp 0x53d980
xor eax, eax
ret
Function at 0x550a96
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x550ace
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054eb20
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054eaf8
jmp 0x550ada
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x552188
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 0x5521ca
call fcn.00558041
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5521ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5521c1
xor eax, eax
jmp 0x5521d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005521d8
pop edi
pop esi
pop ebx
ret 4

Function at 0x558571
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 0x55859f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5585bd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005584d7
jmp 0x5585bd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5585bd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005584d7
test edi, edi
mov eax, edi
jne 0x5585a7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011a0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x430d10
push 0x430e00
push 0
mov dword [0x430d74], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4011da
pop esi
ret
push 2
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x6e
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret

Function at 0x401410
Capabilities:
Check os version
Get disk information

Disassembly:
mov eax, 0x100a8
call fcn.0040bc80
mov eax, dword [0x4120fc]
xor eax, esp
mov dword [esp + 0x100a4], eax
push ebx
push esi
push edi
push 0x100
push 0
push 0x430c10
call fcn.00407820
add esp, 0xc
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401517
cmp dword [esp + 0x20], 2
jne 0x401517
push 0xffff
lea ecx, [esp + 0xb4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4014fd
xor edi, edi
lea esi, [esp + 0xb0]
lea esp, [esp]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401495
sub eax, edx
cmp eax, 3
jle 0x4014d2
push 3
push 0x410df0
push esi
call fcn.00403b00
add esp, 0xc
test eax, eax
jne 0x4014d2
lea edx, [esi + 3]
push edx
call fcn.00402d54
add esp, 4
inc ebx
cmp eax, 0x100
jge 0x4014d2
mov byte [eax + 0x430c10], 1
cmp byte [esi], 0
je 0x4014eb
jmp 0x4014e0
inc edi
cmp byte [esp + edi + 0xb0], 0
jne 0x4014e0
inc edi
cmp byte [esp + edi + 0xb0], 0
lea esi, [esp + edi + 0xb0]
jne 0x401490
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x100a4]
xor ecx, esp
call fcn.00402b2d
add esp, 0x100a8
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
nop
push esi
lea eax, [esp + 0xac]
push str..COM_d
push eax
call fcn.00402b3c
add esp, 0xc
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0xc0]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40156d
call ebp
cmp eax, 5
jne 0x401583
jmp 0x401570
push eax
call ebx
inc dword [esp + 0x10]
cmp esi, 0x100
jge 0x401583
mov byte [esi + 0x430c10], 1
inc esi
cmp esi, 0x100
jb 0x401530
mov ecx, dword [esp + 0x100b4]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402b2d
add esp, 0x100a8
ret
Function at 0x401970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4019b6
push 0
lea edx, [esp + 8]
push edx
push eax
push 0x430e68
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 4]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019dc
cmp dword [esp], edi
jne 0x4019dc
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret

Function at 0x401af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
push ebp
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.00407820
lea eax, [esp + 0x28]
push eax
call fcn.00403e9c
add esp, 0x10
mov edx, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401bd5
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x401b51
cmp byte [eax + edi], 0xa
je 0x401b4f
inc eax
cmp eax, ecx
jb 0x401b42
jmp 0x401b51
add ebx, eax
lea eax, [esp + 0x14]
push eax
add ebx, ecx
add edi, ecx
call fcn.00403e9c
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x401b9f
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401b96
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x430dfc], 0
jne 0x401bcb
cmp ebx, ebp
jae 0x401bcb
mov esi, dword [esp + 0x14]
sub esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x430108]
sbb ecx, dword [esp + 0x20]
cdq
cmp ecx, edx
jg 0x401bcb
jl 0x401b14
cmp esi, eax
jb 0x401b14
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x402020
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [0x412f44]
mov dword [esp], 0
mov eax, 0x30
test edx, edx
je 0x40203c
mov eax, 0x32
mov byte [esi], 2
mov byte [esi + 1], al
mov byte [esi + 2], 0x21
mov byte [esi + 3], 0x4e
mov eax, dword [str.S_4_1_]
mov dword [esi + 4], eax
movzx eax, word [0x410e70]
lea ecx, [esi + 4]
mov word [ecx + 4], ax
mov eax, dword [str.23GIG9]
mov dword [esi + 0xa], eax
movzx eax, word [0x430065]
mov word [esi + 0xe], ax
mov byte [esi + 0x10], 0x3b
mov eax, 0x11
test edx, edx
je 0x40208f
mov eax, 0xd
call fcn.00401ee0
mov eax, 0x13
mov ecx, 1
cmp eax, ecx
jle 0x4020b3
mov dx, word [esp]
push edi
lea ecx, [ecx]
movzx di, byte [ecx + esi]
inc ecx
xor dx, di
cmp ecx, eax
jl 0x4020a0
mov word [esp + 4], dx
pop edi
mov ecx, dword [esp]
mov dl, byte [esp]
shr ecx, 4
or cl, 0x30
mov byte [eax + esi], cl
and dl, 0xf
inc eax
or dl, 0x30
mov byte [eax + esi], dl
inc eax
mov byte [eax + esi], 0xa
inc eax
pop ecx
ret
Function at 0x4024c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x4120fc]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push 0
push 0
push 4
push 0
push 2
push 4
push str.sn_build.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40250b
xor eax, eax
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00402b2d
add esp, 0x88
ret
lea eax, [esp + 8]
push 0x80
push eax
call fcn.00402bb9
lea eax, [esp + 0x10]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402524
sub eax, edx
lea eax, [esp + eax + 8]
mov byte [eax], 0x20
inc eax
push 0x40
push eax
call fcn.00403b1a
lea ecx, [esp + 0x10]
push ecx
push 0x430067
push 0x430d78
push str._s__s__s_r_n
push 0x430e68
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0x430e68
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea edx, [esp + 8]
push edx
push eax
push 0x430e68
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x88]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00402b2d
add esp, 0x88
ret
Function at 0x402b2d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4120fc]
jne 0x402b37
repz ret
jmp fcn.0040416d

Function at 0x40c35c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405f62
and dword [ebp - 4], 0
cmp dword [0x430b98], 0
mov ebx, eax
jne 0x40c40d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c4be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x410498
push edi
call esi
test eax, eax
je 0x40c4be
push eax
call fcn.00405ef0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430b98], eax
call esi
push eax
call fcn.00405ef0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430b9c], eax
call esi
push eax
call fcn.00405ef0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430ba0], eax
call esi
push eax
call fcn.00405ef0
pop ecx
mov dword [0x430ba8], eax
test eax, eax
je 0x40c40d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ef0
pop ecx
mov dword [0x430ba4], eax
mov eax, dword [0x430ba4]
cmp eax, ebx
je 0x40c465
cmp dword [0x430ba8], ebx
je 0x40c465
push eax
call fcn.00405f6b
push dword [0x430ba8]
mov esi, eax
call fcn.00405f6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c465
test edi, edi
je 0x40c465
call esi
test eax, eax
je 0x40c45c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c45c
test byte [ebp - 0xc], 1
jne 0x40c465
or dword [ebp + 0x10], 0x200000
jmp 0x40c49e
mov eax, dword [0x430b9c]
cmp eax, ebx
je 0x40c49e
push eax
call fcn.00405f6b
pop ecx
test eax, eax
je 0x40c49e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c49e
mov eax, dword [0x430ba0]
cmp eax, ebx
je 0x40c49e
push eax
call fcn.00405f6b
pop ecx
test eax, eax
je 0x40c49e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430b98]
call fcn.00405f6b
pop ecx
test eax, eax
je 0x40c4be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c4c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043e4
test esi, esi
jne 0x402e23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044d4
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403564
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403544
xor eax, eax
push ebp
push 0x40353d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403580
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403544
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404260
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x4042c1
cmp word [0x45f21c], 0xd7b2
jne 0x404289
cmp dword [0x45f224], 0
jbe 0x404289
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
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 0x4042e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x4042dd
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406064
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4060ca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404654
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403090
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060d1
lea eax, [ebp - 0x10]
call fcn.004043e4
ret

Function at 0x40b288
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b2c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044d4
jmp 0x40b2ca
mov eax, ebx
mov edx, esi
call fcn.00404438
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b2d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b2f5
mov al, byte [esp]
jmp 0x40b2f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b98c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b7f4
mov eax, dword [0x45e164]
cmp byte [eax], 0
je 0x40ba08
mov eax, dword [0x45df78]
call fcn.00402efc
call fcn.00402bb4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a64
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ba50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba3e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45df24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f664]
call fcn.004054d0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret