joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43266e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b37a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x432724
movzx eax, word [esi]
test ax, ax
je 0x432724
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4326ae
cmp ax, 0x5c
jne 0x4326b0
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4326a2
cmp edi, esi
je 0x4326f7
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0045afef
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x432734
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043266e
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045aeca
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045ae9b
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045755a
mov esp, ebp
pop ebp
ret
call fcn.004576a1
int3

Function at 0x432d09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x432d85
cmp dword [edi + 4], 0xffffffff
jne 0x432d85
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x494248
push esi
call fcn.0045ae9b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x432d57
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x432d57
mov eax, 0x2000000
jmp 0x432d8a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043520f
add esp, 0x10
test eax, eax
jne 0x432d75
mov eax, dword [ebp - 4]
jmp 0x432d8a
push eax
call fcn.00435916
mov dword [edi], eax
mov eax, dword [0x4b72e0]
pop ecx
jmp 0x432d8a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43531c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x435350
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43534b
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x435377
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x435360
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0045a7c0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4354ea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4354f8
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4355b3
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
dec edi
jne 0x435516
pop edi
test esi, esi
je 0x4355cc
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x492a60]
inc edx
dec esi
jne 0x4355b7
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4476ec
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x48d0cf
call fcn.0045a2ca
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6f0], ebx
cmp dword [edi + 4], ebx
jne 0x44777e
lea eax, [ebp - 0xa8]
push eax
call fcn.00447359
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x30]
mov ecx, eax
call fcn.004199ec
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00416a5d
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00438ab2
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, eax
call fcn.00419592
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0041786b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004171c6
mov esi, 0x6e0
test bl, bl
je 0x4477bd
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.0045a288
ret 4

Function at 0x4477f3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b37a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a9a8
mov ecx, dword [esi + 0x6f8]
test ecx, ecx
je 0x44786f
lea eax, [ebp - 0x14]
push eax
call fcn.00447359
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f8]
test eax, eax
je 0x44784b
push 0
call fcn.0041771d
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44786f
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0041771d
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045755a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x447957
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b37a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042c07b
mov ecx, dword [ebx + 0x6f8]
test ecx, ecx
je 0x4479db
lea eax, [ebp - 0x14]
push eax
call fcn.00447359
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f8]
test eax, eax
je 0x4479b7
push 0
call fcn.0041771d
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4479db
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0041771d
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045755a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44a7e3
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x48df59
call fcn.0045a2ca
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
call fcn.00419a08
push eax
lea ecx, [ebp - 0x94]
call fcn.004170de
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00419a0e
mov ecx, eax
call fcn.0041786b
test al, al
je 0x44a8d1
push ebx
lea ecx, [ebp - 0x94]
call fcn.00417307
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004172bc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44a874
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004171c6
jmp 0x44a9b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44a860
push esi
mov dword [ebp - 0x2cc], edi
call fcn.004561eb
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x44a99d
push edi
call fcn.00458344
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004171c6
jmp 0x44a9b0
call fcn.00419a0e
push eax
lea ecx, [ebp - 0x94]
call fcn.004172ea
call fcn.00419be0
test al, al
je 0x44a8f2
call fcn.00419a14
jmp 0x44a909
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004172bc
push eax
call fcn.00432d91
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x44a860
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.004327c2
add esp, 0x14
test eax, eax
jne 0x44a860
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x44a860
push esi
call fcn.004561eb
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00433146
add esp, 0x18
test eax, eax
je 0x44a98d
cmp eax, 0x600
je 0x44a98d
push edi
call fcn.00458344
pop ecx
call fcn.00419be0
test al, al
jne 0x44a8bd
push ebx
call fcn.00432624
jmp 0x44a8bc
call fcn.00419be0
test al, al
jne 0x44a99d
push ebx
call fcn.00432624
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004171c6
test edi, edi
jne 0x44aa24
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44aa20
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44aa20
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004561eb
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x44aa1c
push edi
call fcn.00458344
pop ecx
xor edi, edi
test edi, edi
jne 0x44aa24
xor eax, eax
jmp 0x44aa3c
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0044aa44
push edi
mov esi, eax
call fcn.00455fa6
pop ecx
mov eax, esi
call fcn.0045a288
ret 4
Function at 0x45331e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x453342
cmp dword [esi + 8], edi
jge 0x45333a
push esi
call fcn.0044f726
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x453368
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x45334e
mov dword [esi + 8], edx
jmp 0x45337d
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x453373
xor dl, dl
jmp 0x453378
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x453368
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4533b7
push str.zlib_corrupt
call fcn.0044f64f
add esp, 4
jmp 0x4533f7
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4533c7
push str.read_past_buffer
jmp 0x4533ad
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4533e1
push edi
push ecx
push esi
call fcn.00455e85
add esp, 0xc
test eax, eax
je 0x4533f7
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0045a7c0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x461fd1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x48043f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b37a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00460095
mov dword [ebp - 0x14], eax
cmp dword [0x4ba7dc], esi
jne 0x480532
push 0x800
push esi
push 0x4a3da4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4804bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x480612
push esi
push esi
push 0x4a3da4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x480612
push 0x4a3dbc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480612
push eax
call ebx
push 0x4a3dc8
push edi
mov dword [0x4ba7dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ba7e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ba7e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba7ec], eax
test eax, eax
je 0x48052f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba7e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x480557
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48054a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x48056c
push 4
pop eax
jmp 0x480614
cmp dword [ebp - 0x14], esi
je 0x48056c
push dword [0x4ba7dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x480551
mov eax, dword [0x4ba7e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4805ca
cmp dword [0x4ba7ec], edi
je 0x4805ca
push eax
call ebx
push dword [0x4ba7ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4805ca
test eax, eax
je 0x4805ca
call ecx
test eax, eax
je 0x4805bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4805bf
test byte [ebp - 8], 1
jne 0x4805ca
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4805fa
mov eax, dword [0x4ba7e0]
cmp eax, edi
je 0x4805f7
push eax
call ebx
test eax, eax
je 0x4805f7
call eax
mov esi, eax
test esi, esi
je 0x4805f7
mov eax, dword [0x4ba7e4]
cmp eax, edi
je 0x4805f7
push eax
call ebx
test eax, eax
je 0x4805f7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ba7dc]
call ebx
test eax, eax
je 0x480612
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x480614
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045755a
mov esp, ebp
pop ebp
ret
Function at 0x1002c38
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x1002c75
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 + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x1002c95
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.01004780
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x1002e74
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 0x1002ecd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.01002d10
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.01002d10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1002eb7
inc ebx
jmp 0x1002ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002ed4
lea eax, [ebp - 8]
call fcn.01004510
ret

Function at 0x1002edc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.01004510
test esi, esi
jne 0x1002f13
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.01004600
jmp 0x1002f34
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.01002d10
mov dword [esp], eax
test esi, esi
je 0x1002f34
cmp dword [ebx], 0
je 0x1002f34
dec esi
jmp 0x1002f1b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x10035f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x107b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1003690
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x1003670
xor eax, eax
push ebp
push 0x1003669
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 0x10036ac
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 0x1003670
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x107b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x107b020], ax
mov esp, ebp
pop ebp
ret
Function at 0x100438c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1081048], 0
je 0x10043ed
cmp word [0x108121c], 0xd7b2
jne 0x10043b5
cmp dword [0x1081224], 0
jbe 0x10043b5
mov eax, 0x1081218
call dword [0x1081234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x107b06c
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 0x1004414
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x107b030], 0
jne 0x1004409
push 0
push 0x107b064
push 0x107b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x1006164
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 0x10061ca
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.01004780
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.01003198
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10061b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10061d1
lea eax, [ebp - 0x10]
call fcn.01004510
ret

Function at 0x100b4d4
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 0x100b50d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.01004600
jmp 0x100b516
mov eax, ebx
mov edx, esi
call fcn.01004564
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x100bbd8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x100ba40
mov eax, dword [0x10803d4]
cmp byte [eax], 0
je 0x100bc54
mov eax, dword [0x108018c]
call fcn.01003004
call fcn.01002bc4
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.01008cc4
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 0x100bc9c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x100bc8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x1080130]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x1081664]
call fcn.010055d0
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