joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad1af
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a163b
xor ebx, ebx
cmp dword [0x4e46e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4ad285
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4ad365
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4ad365
push eax
call fcn.004a15cd
mov dword [esp], 0x4c1c88
push edi
mov dword [0x4e46e4], eax
call esi
push eax
call fcn.004a15cd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e46e8], eax
call esi
push eax
call fcn.004a15cd
mov dword [0x4e46ec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00499672
test eax, eax
pop ecx
pop ecx
je 0x4ad253
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049433b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4ad285
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a15cd
cmp eax, ebx
pop ecx
mov dword [0x4e46f4], eax
je 0x4ad285
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a15cd
pop ecx
mov dword [0x4e46f0], eax
mov eax, dword [0x4e46f0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4ad30a
cmp dword [0x4e46f4], ecx
je 0x4ad30a
push eax
call fcn.004a1644
push dword [0x4e46f4]
mov esi, eax
call fcn.004a1644
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4ad30a
cmp edi, ebx
je 0x4ad30a
call esi
cmp eax, ebx
je 0x4ad2d7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ad2d7
test byte [ebp - 0x18], 1
jne 0x4ad30a
lea eax, [ebp - 0x10]
push eax
call fcn.004996a9
test eax, eax
pop ecx
je 0x4ad2f2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049433b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4ad301
or dword [ebp + 0x10], 0x200000
jmp 0x4ad345
or dword [ebp + 0x10], 0x40000
jmp 0x4ad345
mov eax, dword [0x4e46e8]
cmp eax, dword [ebp - 8]
je 0x4ad345
push eax
call fcn.004a1644
cmp eax, ebx
pop ecx
je 0x4ad345
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ad345
mov eax, dword [0x4e46ec]
cmp eax, dword [ebp - 8]
je 0x4ad345
push eax
call fcn.004a1644
cmp eax, ebx
pop ecx
je 0x4ad345
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e46e4]
call fcn.004a1644
cmp eax, ebx
pop ecx
je 0x4ad365
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ad367
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x54e4fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0054e510

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.0054e58a

Function at 0x54e643
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
pushal
call fcn.0054e652
Function at 0x54e8f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
pushal
call fcn.0054e905

Function at 0x54f297
Capabilities:
Terminate process

Disassembly:
mov eax, 0x3039
call 0x54f2a1
xor eax, eax
pop ebx
sub ebx, 0x4022d1
add eax, 1
mov eax, esp
mov edx, 0x64
push dword [eax]
call fcn.0054e4fd
or eax, eax
jne 0x54f2c4
jmp 0x54f3b6
add edx, 0x64
mov dword [ebx + 0x401030], eax
lea eax, [ebx + 0x40105d]
push eax
push dword [ebx + 0x401030]
call fcn.0054e577
or eax, eax
jne 0x54f2e8
jmp 0x54f3b6
mov dword [ebx + fcn.00401040], eax
lea eax, [ebx + 0x401050]
push eax
push dword [ebx + 0x401030]
call dword [ebx + fcn.00401040]
mov dword [ebx + fcn.00401044], eax
lea eax, [ebx + 0x40106c]
push eax
call dword [ebx + fcn.00401044]
mov dword [ebx + 0x401034], eax
lea eax, [ebx + 0x401073]
push eax
push dword [ebx + 0x401034]
call dword [ebx + fcn.00401040]
mov dword [ebx + 0x401048], eax
lea eax, [ebx + 0x4010ea]
push eax
push dword [ebx + 0x401030]
call dword [ebx + fcn.00401040]
mov dword [ebx + 0x4010e6], eax
lea eax, [ebx + 0x4010fb]
push eax
push dword [ebx + 0x401030]
call dword [ebx + fcn.00401040]
mov dword [ebx + 0x4010f7], eax
lea eax, [ebx + 0x4012ca]
push eax
push 0
push 0
call dword [ebx + 0x4010e6]
call dword [ebx + 0x4010f7]
cmp eax, 0xb7
jne 0x54f385
jmp 0x54f3b6
lea eax, [ebx + 0x4010d9]
push eax
push dword [ebx + 0x401030]
call dword [ebx + fcn.00401040]
mov dword [ebx + fcn.004010d5], eax
lea eax, [ebx + 0x401f4c]
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [ebx + fcn.004010d5]
xor eax, eax
jmp 0x49a428
Function at 0x40cdf6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40ce00
repz ret
jmp fcn.0040d09b

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4057ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057fd
xor eax, eax
jmp 0x405824
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405824
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4057f9
call esi
pop esi
leave
ret 4

Function at 0x40585e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40589d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405927
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d2e
mov edi, eax
cmp edi, 0xffffffff
je 0x405968
test byte [esp + 0x10], 1
push esi
je 0x40594a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405950
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405959
xor eax, eax
inc eax
jmp 0x40596a
test byte [esp + 0x10], 4
jne 0x405968
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40596f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
invalid

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.0040617e
push esi
call fcn.00405bdd
mov edi, eax
test edi, edi
jne 0x405c5b
xor eax, eax
jmp 0x405cb3
push edi
call fcn.00406412
test byte [0x42a258], 0x80
je 0x405c78
mov ax, word [edi]
test ax, ax
je 0x405c57
cmp ax, 0x5c
je 0x405c57
sub edi, esi
sar edi, 1
jmp 0x405c92
call fcn.004064c1
test eax, eax
je 0x405c8c
test byte [eax], 0x10
je 0x405c57
push esi
call fcn.00405b7e
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c7e
call fcn.00405b32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x405d2e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d4d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405d53
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405d82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405dd2
test edi, edi
jne 0x405d8f
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405dcc
Function at 0x417062
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004170e5
jae 0x417070
xor ecx, ecx
call fcn.004170e5
jae 0x41709f
xor eax, eax
call fcn.004170e5
jae 0x4170af
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004170e5
adc al, al
jae 0x417091
jne 0x4170db
stosb byte es:[edi], al
jmp 0x417073
call fcn.004170f1
sub ecx, ebx
jne 0x4170b8
call fcn.004170ef
jmp 0x4170d7
lodsb al, byte [esi]
shr eax, 1
je 0x417101
adc ecx, ecx
jmp 0x4170d4
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004170ef
cmp eax, 0x7d00
jae 0x4170d4
cmp ah, 5
jae 0x4170d5
cmp eax, 0x7f
ja 0x4170d6
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417073
and byte [esp + 0x28], bh
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x50fd20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x46c015
lea edi, [esi - 0x6b015]
push edi
jmp 0x50fd3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50fd41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fd30
mov eax, 1
add ebx, ebx
jne 0x50fd53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50fd64
jne 0x50fd83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fd83
dec eax
add ebx, ebx
jne 0x50fd70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50fd48
add ebx, ebx
jne 0x50fd7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50fdd5
xor ecx, ecx
sub eax, 3
jb 0x50fd9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50fe0a
sar eax, 1
mov ebp, eax
jmp 0x50fda6
add ebx, ebx
jne 0x50fda6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fd74
inc ecx
add ebx, ebx
jne 0x50fdb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fd74
add ebx, ebx
jne 0x50fdc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50fdb6
jne 0x50fdd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50fdb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50fdf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50fde6
jmp 0x50fd36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50fdf4
add edi, ecx
jmp 0x50fd36
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50fe12
cmp byte [edi], 3
jne 0x50fe12
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 0x50fe17
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x50fe86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13605c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x136098]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50fe44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1360a0]
or eax, eax
je 0x50fe80
mov dword [ebx], eax
add ebx, 4
jmp 0x50fe61
call dword [esi + 0x13609c]
mov ebp, dword [esi + 0x1360a4]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x10fee1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50fed2
sub esp, 0xffffff80
jmp 0x4153e0
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

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

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x402e14
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cb0
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cb0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e57
inc ebx
jmp 0x402e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e74
lea eax, [ebp - 8]
call fcn.00404860
ret

Function at 0x402e7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404860
test esi, esi
jne 0x402eb3
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.00404950
jmp 0x402ed4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb0
mov dword [esp], eax
test esi, esi
je 0x402ed4
cmp dword [ebx], 0
je 0x402ed4
dec esi
jmp 0x402ebb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403948
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039c0
xor eax, eax
push ebp
push 0x4039b9
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 0x4039fc
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 0x4039c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43d048], 0
je 0x40471d
cmp word [0x43d21c], 0xd7b2
jne 0x4046e5
cmp dword [0x43d224], 0
jbe 0x4046e5
mov eax, 0x43d218
call dword [0x43d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43a070
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 0x404744
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43a030], 0
jne 0x404739
push 0
push 0x43a068
push 0x43a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066b4
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 0x40671a
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.00404ad0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406704
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406721
lea eax, [ebp - 0x10]
call fcn.00404860
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4085a5
test al, 0x10
jne 0x4085a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b934
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 0x40b96d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404950
jmp 0x40b976
mov eax, ebx
mov edx, esi
call fcn.004048b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b980
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 0x40b9a1
mov al, byte [esp]
jmp 0x40b9a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c038
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bea0
mov eax, dword [0x43bfe4]
cmp byte [eax], 0
je 0x40c0b4
mov eax, dword [0x43bdac]
call fcn.0040328c
call fcn.00402bdc
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.00408898
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 0x40c0fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x43bd68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43d664]
call fcn.00405b50
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
Function at 0x40ceec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cf50
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ad0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf57
lea eax, [ebp - 0xc]
call fcn.00404860
ret

Function at 0x40d74c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x43bdd4]
cmp dword [eax], 0
je 0x40d782
push 0xa
push 0x40d7d8
mov eax, dword [0x43bdd4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x43bdd4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40d7ce
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x43c038]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40d7ce
mov ebx, dword [esp + 4]
push 0xa
push 0x40d7d8
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40d7ce
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40d799
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x40deb8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404860
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404d20
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40defd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404950
jmp 0x40df16
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404eac
push ebx
mov eax, dword [esi]
call fcn.00404d20
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret