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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
call fcn.0040d2f3
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x417bbf
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x417ab6
push 2
lea eax, [ebx + 0x50]
push eax
push dword [ebp - 8]
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.0040983f
lea eax, [ebp - 0x88]
push eax
call fcn.004089c9
mov byte [ebp - 1], al
jmp 0x417aba
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x417b0f
test byte [ebp - 0xc], 0x10
jne 0x417b0f
push dword [ebx + 0xc]
call esi
movzx eax, word [edi + 0xc]
movzx ecx, word [edi + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [edi]
push eax
movzx eax, word [edi + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebx + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x417b0f
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417bbf
call fcn.004178f4
test al, al
je 0x417b7e
mov eax, dword [ebx + 0x10]
push 0x10
push edi
add eax, 0x114
push eax
call fcn.00405222
push dword [ebx + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [ebx + 8]
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x417b7e
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417b69
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x124], 1
jne 0x417b7e
mov al, byte [ebp - 1]
jmp 0x417bc1
push 0
lea esi, [ebx + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.00406bf5
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x417bbf
push edi
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop esi
pop ebx
leave
ret 8

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

Disassembly:
cmp word [0x423460], 0
push esi
push edi
mov edi, 0x423460
mov esi, 0x423668
jne 0x417cd9
push 2
call fcn.0041cc9c
mov ecx, edi
call fcn.00405d35
add eax, eax
push eax
push edi
push esi
call fcn.00405222
xor ecx, ecx
push esi
mov word [eax + 0x423668], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test ebx, ebx
je 0x417cf5
or eax, 0xffffffff
mov ecx, edi
mov edx, ebx
call fcn.00405587
push 0x404a64
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
cmp byte [esp + 0xc], 0
je 0x417d23
cmp byte [0x423c1c], 1
jbe 0x417d23
push esi
call fcn.0040a7f9
push esi
call fcn.00408867
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417d23
push edi
call fcn.00408867
pop edi
pop esi
ret 4
Function at 0x417ddc
Capabilities:
Get session user name
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
push edi
mov bl, 1
mov byte [ebp - 1], 0
jne 0x417e0c
call fcn.0040aad3
mov dword [esi], eax
test eax, eax
jne 0x417e08
xor al, al
jmp 0x418011
mov byte [ebp - 1], 1
test byte [ebp + 0xc], 1
mov edi, 0x20000
je 0x417e5e
lea eax, [ebp - 0x228]
push eax
call fcn.0041cc4a
push 0x2711
push esi
lea ecx, [ebp - 0x224]
call fcn.0040ab94
mov bl, al
test bl, bl
je 0x417e81
lea eax, [ebp - 0x3c]
push eax
call fcn.0041cda8
cmp word [ebp - 0x3c], 0
je 0x417e5a
push 0x2712
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040ab94
mov bl, al
test bl, bl
je 0x417e81
test byte [ebp + 0xc], 2
je 0x417e81
lea eax, [ebp - 8]
push eax
push edi
push 0x2713
push 4
pop ebx
mov eax, esi
mov dword [ebp - 8], 0x2000809
call fcn.0040aae7
mov bl, al
test byte [ebp + 0xc], 4
je 0x417efa
test bl, bl
je 0x417fff
call fcn.004052e8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x2719
push 4
pop ebx
mov eax, esi
call fcn.0040aae7
mov bl, al
test bl, bl
je 0x417fff
call fcn.00405310
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271b
push 4
pop ebx
mov eax, esi
call fcn.0040aae7
mov bl, al
test bl, bl
je 0x417fff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271a
push 4
pop ebx
mov eax, esi
call fcn.0040aae7
mov bl, al
test bl, bl
je 0x417fff
test byte [ebp + 0xc], 8
je 0x417f54
lea esi, [ebp - 0x10]
call fcn.0041c007
mov eax, esi
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271c
push 6
pop ebx
call fcn.0040aae7
mov bl, al
test bl, bl
je 0x417ffc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271d
push 2
pop ebx
call fcn.0040aae7
mov esi, dword [ebp + 8]
mov bl, al
test bl, bl
je 0x417fff
test byte [ebp + 0xc], 0x10
je 0x417fe0
push 0x103
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 8], eax
test eax, eax
je 0x417f9a
xor ecx, ecx
push 0x271e
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040ab94
mov bl, al
mov dword [ebp + 8], 0x104
test bl, bl
je 0x417fff
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x248]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x417fe0
mov eax, dword [ebp + 8]
test eax, eax
je 0x417fe0
xor ecx, ecx
push 0x271f
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040ab94
mov bl, al
test bl, bl
je 0x417fff
test byte [ebp + 0xc], 0x20
je 0x41800f
push 2
push esi
call fcn.00417d28
push 0x17
push esi
call fcn.00417d28
jmp 0x41800f
mov esi, dword [ebp + 8]
cmp byte [ebp - 1], 1
jne 0x41800f
push dword [esi]
call fcn.004051e6
and dword [esi], 0
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4188c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
lea eax, [ebp - 0x424]
push eax
push 0xf6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41897d
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x404a8c
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41897d
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a548
test al, al
je 0x41897d
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 8]
call fcn.004091bb
test al, al
je 0x41897d
lea eax, [ebp - 0x21c]
push eax
push 2
pop eax
lea esi, [ebp - 0x10]
call fcn.0040a402
test al, al
je 0x418971
lea eax, [ebp - 0x21c]
cmp dword [ebp + 8], ebx
je 0x418956
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push 2
call fcn.004186ba
mov bl, al
lea eax, [ebp - 0x10]
call fcn.0040a4aa
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a548
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x41be9c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0xd0]
push eax
push 0xff220829
call fcn.0041c946
push 3
lea esi, [ebp - 0x68]
pop eax
call fcn.0040f34a
xor bl, bl
mov edi, 0x80000001
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x41bf26
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41bf19
lea eax, [ebp - 0xd0]
push eax
lea esi, [ebp - 4]
call fcn.0040953c
jmp 0x41bf1b
xor al, al
test al, al
je 0x41bf2d
inc bl
cmp bl, 5
jb 0x41becd
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x41bf28

Function at 0x41bf31
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41bfff
push 2
pop eax
cmp dword [ebp - 0x94], eax
jne 0x41bfff
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x76], cl
jne 0x41bfbf
cmp dword [ebp - 0xa0], 5
jne 0x41bf9e
cmp dword [ebp - 0x9c], esi
jne 0x41bf8a
mov esi, ecx
jmp 0x41bfff
cmp dword [ebp - 0x9c], ecx
je 0x41bf9a
cmp dword [ebp - 0x9c], eax
jne 0x41bfff
mov esi, eax
jmp 0x41bfff
cmp dword [ebp - 0xa0], 6
jne 0x41bfff
cmp dword [ebp - 0x9c], esi
jne 0x41bfb3
push 4
jmp 0x41bffe
cmp dword [ebp - 0x9c], ecx
jne 0x41bfff
push 6
jmp 0x41bffe
cmp byte [ebp + 0x76], al
je 0x41bfca
cmp byte [ebp + 0x76], 3
jne 0x41bfff
cmp dword [ebp - 0xa0], 5
jne 0x41bfdf
cmp dword [ebp - 0x9c], eax
jne 0x41bfff
push 3
jmp 0x41bffe
cmp dword [ebp - 0xa0], 6
jne 0x41bfff
cmp dword [ebp - 0x9c], esi
jne 0x41bff4
push 5
jmp 0x41bffe
cmp dword [ebp - 0x9c], ecx
jne 0x41bfff
push 7
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x41c130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x41c175
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x41c167
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.00405d49
test eax, eax
je 0x41c17d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x41c14e
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x41c177

Function at 0x41c1f6
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x41c219
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41c210
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x41c206
pop edi
pop esi
ret

Function at 0x41c363
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 1
push ebx
push esi
push edi
je 0x41c3fe
cmp byte [0x423c1c], 1
jbe 0x41c411
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x4015f8]
lea esi, [ebp - 0x498]
call fcn.0040f34a
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x401600]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41c3e2
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.0040aa77
test al, al
je 0x41c3e2
push dword [0x423a0c]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41c3ed
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x41c38a
jmp 0x41c411
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x4015fc]
or dword [0x4239b0], eax
jmp 0x41c411
test byte [0x4239b0], 1
je 0x41c411
or dword [0x4239b0], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4
Function at 0x41c41a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x4223b8
call esi
xor ebx, ebx
xor eax, eax
push 0x4233fc
mov dword [0x4223ac], ebx
mov word [0x4223b4], ax
mov word [0x4223b0], ax
mov dword [0x4223a8], ebx
mov dword [0x42341c], ebx
mov dword [0x423414], ebx
mov dword [0x423418], ebx
call esi
push ebx
lea edi, [ebp - 0x210]
call fcn.0041cc9c
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov eax, edi
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c4c2
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c4bb
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x41c4ce
test al, 1
je 0x41c4d0
xor eax, eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea eax, [ebp - 0x210]
call fcn.00415ed6
lea eax, [ebp - 0x210]
call fcn.0040f74e
push 0x423444
mov dword [0x423440], ebx
mov dword [0x42345c], ebx
call esi
call fcn.0040d74c
push 0x40358c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41c522
mov edi, eax
call fcn.0040e2a9
jmp 0x41c524
xor al, al
cmp al, bl
je 0x41c52f
or dword [0x423888], 1
call fcn.0040e072
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x41c8d5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
push esi
lea eax, [ebp - 0x580]
call fcn.0041cc1d
lea eax, [ebp - 0x250]
push eax
call fcn.0041cc4a
push 2
lea eax, [ebp - 0x425]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x72]
push 0x423c28
lea ecx, [ebp - 0x68]
call fcn.0040983f
lea eax, [ebp - 0x68]
push eax
push 1
push 0x4239e8
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41c93f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c93f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x41cc1d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x32c
push edx
push 0x402d88
push eax
call fcn.00405222
mov ecx, dword [0x4239c4]
add ecx, dword [0x423e70]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x41cc3f
pop esi
ret
Function at 0x41d470
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ecx, ecx
xor bl, bl
call fcn.0041c53b
test al, al
je 0x41d55c
push 0x8007
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x41d537
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x41d4fc
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x41d4f6
cmp word [ecx], 0x2d
jne 0x41d4f6
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x41d4f2
cmp ecx, 0x69
je 0x41d4ee
cmp ecx, 0x6e
je 0x41d4e8
cmp ecx, 0x76
jne 0x41d4f6
mov byte [ebp - 1], 1
jmp 0x41d4f6
mov byte [ebp - 0xc], 0
jmp 0x41d4f6
mov bl, 1
jmp 0x41d4f6
mov byte [ebp - 0x10], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x41d4bd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x41d50e
call fcn.0041cf7b
jmp 0x41d542
cmp byte [ebp - 1], 0
je 0x41d537
call fcn.0040d74c
call fcn.004179c2
test byte [0x4239b0], 4
mov bl, al
je 0x41d544
push 0
mov eax, 0x423238
call fcn.0040d5c5
jmp 0x41d544
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0041d16a
mov bl, al
test bl, bl
je 0x41d55c
test byte [0x4239b0], 2
je 0x41d55c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5213f6
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005215a6
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5214f4
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x521497
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5214da
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5214ae
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5214c9
test al, 0x40
je 0x5214c0
mov ecx, dword [edi + 0x20]
jmp 0x5214c7
test al, 0x80
je 0x5214da
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5214da
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x521466
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4028dc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402919
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402939
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403f04
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402aec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402b1b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403dbc
jmp 0x402b39
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402a20
mov edi, eax
test ebx, ebx
je 0x402b39
cmp dword [esi], 0
je 0x402b39
dec ebx
jmp 0x402b22
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ff4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fd4
xor eax, eax
push ebp
push 0x402fcd
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 0x403010
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 0x402fd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405ef4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4060ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f55
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4060c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fc2
xor eax, eax
push ebp
push 0x405fbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405fa4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fc2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4060a3
cmp byte [ebp - 0xd], 0
jne 0x406004
cmp byte [ebp - 0x12], 0
je 0x4060a3
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40601d
dec ebx
cmp byte [ebx], 0x2e
je 0x40602c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40601c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4060a3
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406059
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060a3
cmp byte [ebp - 0xd], 0
je 0x4060a3
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060a3
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40663c
Capabilities:
Delete file

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b0
cmp edx, 3
ja 0x406663
lea eax, [eax + 0x48]
push eax
call sub.kernel32.dll_DeleteFileA
dec eax
jne 0x406657
ret
call sub.kernel32.dll_GetLastError
call fcn.00402860
jmp 0x406656
mov eax, 0x66
jmp 0x40665c

Function at 0x40946c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404118
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret
Function at 0x409480
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404118
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4094a2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd38
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 0x40bd71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403dbc
jmp 0x40bd7a
mov eax, ebx
mov edx, esi
call fcn.00403d70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x419c78
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419c7e
ret

Function at 0x41c640
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41c691
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c678
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c668
jmp 0x41c691
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41c679
pop ebx
mov esp, ebp
pop ebp
ret