joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402770
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x574
mov eax, dword [0x425544]
xor eax, esp
mov dword [esp + 0x570], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
lea edx, [esp + 0x264]
push 0x104
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.00415859
add esp, 0xc
push 0x423064
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [0x428078]
mov ebx, eax
push 0x104
lea eax, [esp + 0x474]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp ebx, 0xffffffff
je 0x402933
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x15c]
push 0x104
push eax
call fcn.00415859
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, 0x42310c
lea esi, [esp + 0x44]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40291f
mov edi, 0x423110
lea esi, [esp + 0x44]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40291f
test byte [esp + 0x18], 0x10
je 0x40287f
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.00402770
add esp, 8
lea eax, [esp + 0x18]
push eax
jmp 0x402924
lea ecx, [esp + 0x470]
lea eax, [esp + 0x158]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4028b0
test dl, dl
je 0x4028ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4028b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402890
xor eax, eax
jmp 0x4028b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4028c0
lea edx, [esp + 0x18]
push edx
jmp 0x402924
push 0x80
lea eax, [esp + 0x15c]
push eax
push 0x10
push 0x428188
lea ecx, [esp + 0x378]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToA]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
je 0x402918
push 1
push 0x4013b0
push 0x401210
push 0x4013a0
push 0
lea ecx, [esp + 0x37c]
push ecx
lea edx, [esp + 0x170]
push edx
push eax
call fcn.00406930
add esp, 0x20
lea eax, [esp + 0x18]
push eax
jmp 0x402924
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4027fc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x57c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414cc2
mov esp, ebp
pop ebp
ret
Function at 0x402950
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x425544]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push 0x104
lea eax, [esp + 0x118]
mov esi, ecx
mov ecx, dword [0x428078]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x80
push esi
push 0x80
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x21]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToA]
push 0x423114
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov byte [esp + 0x1c], 0x5b
call fcn.0041660d
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402aa7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x10]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4029f8
sub ecx, esi
push edi
lea edi, [eax + ecx + 1]
push edi
call fcn.00406797
lea edx, [esp + 0x18]
push edx
mov esi, eax
push edi
push esi
call fcn.00415859
lea eax, [esp + 0x24]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a26
sub eax, edx
add esi, eax
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a40
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
sub edx, eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a96
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a70
push edi
sub eax, edx
sub esi, eax
movzx eax, word [esp + 0x22c]
push esi
push 0x400
push eax
push 0xa
push ebp
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
call fcn.00416588
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x218]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414cc2
add esp, 0x210
ret
Function at 0x404470
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push str.Tahoma
push 0
push 2
movzx esi, word [0x42807c]
mov edi, dword [0x428078]
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x18
call dword [sym.imp.GDI32.dll_CreateFontA]
push str.IIF2_SyncEvent
push 0
mov dword [0x42829c], eax
mov eax, dword [esp + 0x18]
push 0
push 0
mov dword [0x428294], edi
mov dword [0x428184], eax
mov word [0x428290], si
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x4044eb
pop edi
mov eax, 0x3039
pop esi
pop ecx
ret
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x404530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x42828c], eax
je 0x4044e2
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xffffcfc7
pop edi
add eax, 0x3039
pop esi
pop ecx
ret

Function at 0x4049a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4200f8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x425544]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x40]
push eax
call fcn.004030b0
call fcn.00404a20
cmp dword [esp + 0x34], 0x10
jb 0x404a05
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041658d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 0x1c

Function at 0x405a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420360
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x425544]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 4], esi
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
mov byte [esp + 0x30], 1
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x40]
push eax
call fcn.004030b0
mov ecx, esi
call fcn.00405ad0
cmp dword [esp + 0x34], 0x10
jb 0x405ab9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041658d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 0x1c
Function at 0x408edc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x408f23
cmp edx, 0x10
jl 0x408f0f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x408efc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x408f23
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x408f1b
and edx, 3
cmp edx, 3
jne 0x408f37
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x408f3c
cmp edx, 2
jne 0x408f48
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x408f4d
cmp edx, 1
jne 0x408f53
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x409b70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x409b8f
pop edi
pop esi
ret
Function at 0x414cc2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425544]
jne 0x414ccc
repz ret
jmp fcn.00417355

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x417b1c
call fcn.00415180
mov dword [eax], esi
call fcn.0041516d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00416554
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x417af8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415193
pop ecx
call fcn.0041516d
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x417b72
test al, 1
je 0x417b72
test byte [esp + 0xc], 2
je 0x417b72
call fcn.00415180
mov dword [eax], 5
call fcn.0041516d
mov dword [eax], 0xd
jmp 0x417b42
xor eax, eax
pop esi
ret
Function at 0x41dc8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00419704
xor ebx, ebx
cmp dword [0x427f54], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41dd64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41dccf
xor eax, eax
jmp 0x41de28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41dcc8
push eax
call fcn.004196a1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427f54], eax
call esi
push eax
call fcn.004196a1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427f58], eax
call esi
push eax
call fcn.004196a1
mov dword [0x427f5c], eax
lea eax, [ebp - 8]
push eax
call fcn.0041923d
test eax, eax
pop ecx
pop ecx
je 0x41dd32
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416458
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41dd64
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004196a1
cmp eax, ebx
pop ecx
mov dword [0x427f64], eax
je 0x41dd64
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004196a1
pop ecx
mov dword [0x427f60], eax
mov eax, dword [0x427f60]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41dddd
cmp dword [0x427f64], esi
je 0x41dddd
push eax
call fcn.0041970d
pop ecx
call eax
cmp eax, ebx
je 0x41ddaa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x427f64]
call fcn.0041970d
pop ecx
call eax
test eax, eax
je 0x41ddaa
test byte [ebp - 0x18], 1
jne 0x41dddd
lea eax, [ebp - 0xc]
push eax
call fcn.00419274
test eax, eax
pop ecx
je 0x41ddc5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416458
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41ddd4
or dword [ebp + 0x10], 0x200000
jmp 0x41de0e
or dword [ebp + 0x10], 0x40000
jmp 0x41de0e
mov eax, dword [0x427f58]
cmp eax, esi
je 0x41de0e
push eax
call fcn.0041970d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41de0e
mov eax, dword [0x427f5c]
cmp eax, esi
je 0x41de0e
push dword [ebp - 4]
push eax
call fcn.0041970d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x427f54]
call fcn.0041970d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x503ca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xdb000]
push edi
or ebp, 0xffffffff
jmp 0x503cc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x503cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503cb8
mov eax, 1
add ebx, ebx
jne 0x503cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x503cec
jne 0x503d0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503d0b
dec eax
add ebx, ebx
jne 0x503cf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x503cd0
add ebx, ebx
jne 0x503d07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x503d5d
xor ecx, ecx
sub eax, 3
jb 0x503d23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x503d92
sar eax, 1
mov ebp, eax
jmp 0x503d2e
add ebx, ebx
jne 0x503d2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503cfc
inc ecx
add ebx, ebx
jne 0x503d3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503cfc
add ebx, ebx
jne 0x503d49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x503d3e
jne 0x503d5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x503d3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x503d7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x503d6e
jmp 0x503cbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x503d7c
add edi, ecx
jmp 0x503cbe
pop esi
mov edi, esi
mov ecx, 0x660
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x503d9a
cmp byte [edi], 0xa
jne 0x503d9a
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 0x503d9f
lea edi, [esi + 0x101000]
mov eax, dword [edi]
or eax, eax
je 0x503e17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103c7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x103cb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x503dcc
mov ecx, edi
jns 0x503dfb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x103cbc]
or eax, eax
je 0x503e11
mov dword [ebx], eax
add ebx, 4
jmp 0x503de9
call dword [esi + 0x103ccc]
mov ebp, dword [esi + 0x103cc0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x503e4b
sub esp, 0xffffff80
jmp 0x4054a0
Function at 0x1094058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10941a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x109407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109406a
add dl, dl
jne 0x1094089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10940dc
xor eax, eax
add dl, dl
jne 0x1094096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109417d
add dl, dl
jne 0x10940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1094075
mov eax, 1
add dl, dl
jne 0x10940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10940e1
sub eax, ebx
mov ebx, 1
jne 0x1094128
mov ecx, 1
add dl, dl
jne 0x109410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x109413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094136
cmp eax, 0x7d00
jae 0x109416d
cmp eax, 0x500
jb 0x1094168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
cmp eax, 0x7f
ja 0x1094170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x109419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1094075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40279c
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 0x4027cb
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.00403738
jmp 0x4027e9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026d0
mov edi, eax
test ebx, ebx
je 0x4027e9
cmp dword [esi], 0
je 0x4027e9
dec ebx
jmp 0x4027d2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402a70
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 0x402b08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ae8
xor eax, eax
push ebp
push 0x402ae1
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 0x402b24
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 0x402ae8
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 0x404334
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 0x4044d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043e4
xor eax, eax
push ebp
push 0x4043dd
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 0x4043c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044f0
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 0x4043e4
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 0x4044c5
cmp byte [ebp - 0xd], 0
jne 0x404426
cmp byte [ebp - 0x12], 0
je 0x4044c5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40443f
dec ebx
cmp byte [ebx], 0x2e
je 0x40444e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40443e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044c5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40447b
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 0x4044c5
cmp byte [ebp - 0xd], 0
je 0x4044c5
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 0x4044c5
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 0x4070b0
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 0x4070e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403738
jmp 0x4070f2
mov eax, ebx
mov edx, esi
call fcn.004036ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4070fc
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 0x40711d
mov al, byte [esp]
jmp 0x40711f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410934
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 0x41093a
ret

Function at 0x412bd4
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 0x412c25
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x412c0c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x412bfc
jmp 0x412c25
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
jne 0x412c0d
pop ebx
mov esp, ebp
pop ebp
ret