joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a75b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005a7bc0
add esp, 8
test al, al
je 0x5a75d5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5a75d5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5a7bc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5a9070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a909b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a909b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10001370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
call fcn.10001de1
add esp, 4
xorps xmm0, xmm0
mov esi, eax
push 0x4d
sub esp, 0x18
mov ecx, esp
push 0x317
movups xmmword [ecx], xmm0
push str.PHQIBGKEYFOHDFOGKFOHQEYGLHQGOIDEYIJFXFPFQIDIDFWGDFBFNFBGAGMIJICHQIIGPIDICEYIHFRIKICFRFSFHHWIKFWIGFXFUFIGAIBIFFQHPIFFTIBFUGDGHIGIGHOINFHFBGAFBFLFBIIFBFLFBIGFBFLFBHQFBFLFBFQFBFIGAIHFRIKICFRFSGDIBIFFQHPIFFTIBFUFHHWIKFWIGFXFUFIGAHSICHREYHTIJICHQIIHWIDICGAHVHXFQHOIBFTFPFXGDFBHAFBFKIHFRIKICFRFSFHFSFIFKFBIGHWIEFBFKIHFRIKICFRFSFHFQFIFKIHFRIKICFRFSFHFPFIFKFBHVHBFBFKIHFRIKICFRFSFHFQFIFKFBIEIHGAFOFOHQIDICIIHRIHHYIAFBFKIJFXFPFQIDIDFWFKFBHPIDIJICHQHSIBHSFBFKIJFXFPFQIDIDFWFKFBICHSIIFOHUFQFBGAHSIKHOIAFHFBGNHSFBFKIHFRIKICFRFSFHFQFIFKFBGVHPHXHSFBFKIHFRIKICFRFSFHFSFIFKIHFRIKICFRFSFHFQFIFKFBFHHVHXFQHOIBFTFPFXFIFBFIGEICIJIAGEGJGAHJHCIHHSIGIHHJGWIJHPIAHWHQHJHLHQFTFTIIFPHTFRFNIKHPIHFFHQGAHJILHWICHRIDILIHHJIHINIHIIHSIBFSFRHJHQIBHREYFOHQEYIHIIHOIGIIEYGJGAHJHCIHHSIGIHHJGWIJHPIAHWHQHJHQFTFTIIFPHTFRFNIKHPIH
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10001080
lea eax, [ebp - 0x1c]
push eax
call fcn.10001450
add esp, 0x20
cmp dword [eax + 0x14], 7
jbe 0x100013ce
mov eax, dword [eax]
push eax
push 0x1004c838
push esi
call fcn.10001750
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 7
jbe 0x10001413
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001409
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001448
push ecx
push edx
call fcn.10001dd3
add esp, 8
push 2
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x10001435
push 0x30
push str.Error_105
push str.Error_105
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10001dea
mov esp, ebp
pop ebp
ret 4
call fcn.1000d952
int3

Function at 0x10028219
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10028258
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028258
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028258
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10028258
cmp dword [ecx + 0x74], 0xe
jbe 0x10028258
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10031686
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100316d1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10031b26
test al, al
jne 0x100316cb
sub edx, 2
cmp edx, edi
jne 0x100316b1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100316f3
lea eax, [edi + 2]
cmp edx, eax
je 0x100316f3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1003134d
add esp, 0x10
jmp 0x100317ed
push esi
lea ecx, [ebp - 0x255]
call fcn.10031b26
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10031736
push dword [ebp - 0x25c]
jmp 0x100316e3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10031773
cmp word [ebp - 0x226], 0
je 0x10031794
cmp word [ebp - 0x226], ax
jne 0x10031773
cmp word [ebp - 0x224], 0
je 0x10031794
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1003134d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100317e0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1003174d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100317c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100317ed
push 0x10030d9d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1003dd50
add esp, 0x10
jmp 0x100317bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001dea
leave
ret
Function at 0x100331be
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003325b
push ebx
push esi
call fcn.1003317a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100330b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10033208
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003325a
push edi
push eax
call fcn.1002e1cc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10033228
call fcn.1002e192
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10033259
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100330b7
add esp, 0x20
test eax, eax
jne 0x10033247
push edi
call fcn.1002e192
jmp 0x1003324f
push ebx
call fcn.1002e192
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003325e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003326f
pop esi
ret
push ebx
push edi
push esi
call fcn.1003317a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1002e1cc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10033297
push ebx
push esi
push edi
call fcn.100035f0
add esp, 0xc
push 0
call fcn.1002e192
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10033b86
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003350c

Function at 0x10034578
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f384
push 0x1004f37c
push str.FlsAlloc
push 0x1f
call fcn.10034246
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100345ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c154]
call esi
jmp 0x100345b2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100345f6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f394
push 0x1004f38c
push str.FlsGetValue
push 0x21
call fcn.10034246
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003462d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10034635
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f39c
push 0x1004f394
push str.FlsSetValue
push 0x22
call fcn.10034246
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003466f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004c154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10038828
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002be16
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10038897
cmp esi, dword [ebp - 4]
je 0x10038892
cmp dword [ebp + 0xc], 0
je 0x10038892
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003886f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003837a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10038899
xor eax, eax
inc eax
jmp 0x10038899
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100388fe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1002be16
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1002be16
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10038975
cmp word [ecx], dx
je 0x10038975
mov eax, dword [0x1004ffcc]
push edi
dec eax
push eax
push 0x1004feb8
call fcn.1003889d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100389e8
cmp word [eax], dx
je 0x100389e8
mov eax, dword [edi]
test eax, eax
je 0x10038999
cmp word [eax], dx
je 0x10038999
lea eax, [ebp - 0x10]
push eax
call fcn.10038280
jmp 0x100389a2
lea eax, [ebp - 0x10]
push eax
call fcn.1003831b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10038a12
mov eax, dword [0x1004feb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1004fba8
call fcn.1003889d
add esp, 0xc
test al, al
je 0x10038a12
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100389dd
cmp word [eax], di
je 0x100389dd
lea eax, [ebp - 0x10]
push eax
call fcn.10038280
pop ecx
jmp 0x10038a14
lea eax, [ebp - 0x10]
push eax
call fcn.1003831b
jmp 0x100389da
mov eax, dword [edi]
test eax, eax
je 0x100389ff
cmp word [eax], dx
je 0x100389ff
lea eax, [ebp - 0x10]
push eax
call fcn.10038217
pop ecx
jmp 0x10038a12
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10038add
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10038722
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10038add
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10038add
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10038add
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10038a6a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10034906
test ebx, ebx
je 0x10038ad8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10034906
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10038add
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10038add
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004016f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10038adf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001dea
leave
ret
Function at 0x10042932
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100582d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10042972
cmp byte [ebx], 0xa
jne 0x10042972
or byte [edi + eax + 0x28], 4
jmp 0x10042977
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10042a76
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10042a59
inc eax
cmp dl, 0xd
je 0x100429a3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100429c9
cmp eax, ecx
jae 0x100429d7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1004298b
jmp 0x10042a76
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10042a54
cmp dword [ebp - 0x10], 0
je 0x10042a54
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100582d8]
test byte [eax + edi + 0x28], 0x48
je 0x10042a2e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10042a19
mov byte [esi], dl
jmp 0x10042a2a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100582d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10042a76
cmp byte [ebp - 1], 0xa
jne 0x10042a3d
cmp esi, ebx
jne 0x10042a3d
mov byte [esi], 0xa
jmp 0x10042a75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100420c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10042a76
mov byte [esi], 0xd
jmp 0x10042a75
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100582d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10042a73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10042a76
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10042a7f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100582d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10042ac5
cmp word [ebx], dx
jne 0x10042ac5
or byte [eax + edi + 0x28], 4
jmp 0x10042aca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10042c2d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10042c0d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10042b0b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10042b41
cmp eax, edx
jae 0x10042b4f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10042ae6
jmp 0x10042c2d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10042c08
cmp dword [ebp - 0x18], 0
je 0x10042c08
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100582d8]
test byte [eax + edi + 0x28], 0x48
je 0x10042bde
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10042ba2
mov word [esi], cx
jmp 0x10042bd9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100582d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100582d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100582d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10042c2d
pop eax
cmp word [ebp - 4], ax
jne 0x10042bee
cmp esi, ebx
jne 0x10042bee
mov word [esi], ax
jmp 0x10042c2a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100420c0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10042c2d
push 0xd
pop eax
jmp 0x10042be9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100582d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10042c27
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10042c2d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10045520
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100453f4

Function at 0x10047880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100478ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100478ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406243
pop dword [ebp - 0x14]
mov eax, 0x406243
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xaabdb414
add dword [ebp - 0x24], 0xa3949137
mov dword [ebp - 0x20], 0xb82a2563
add dword [ebp - 0x20], 0x7a0926e2
mov dword [ebp - 0x1c], 0xbdfac08c
add dword [ebp - 0x1c], 0x8e5183a2
mov dword [ebp - 0x18], 0x745c5447
sub dword [ebp - 0x18], 0x745c5447
lea eax, [ebp - 0x24]
push eax
mov eax, 0x9e989e0a
sub eax, 0x9e581d06
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x5148d621
sub dword [ebp - 0x24], 0xdcd66ccb
mov dword [ebp - 0x20], 0xe6f38fb4
add dword [ebp - 0x20], 0x5a78d1c1
mov dword [ebp - 0x1c], 0xff2004f1
sub dword [ebp - 0x1c], 0x9bb09885
mov dword [ebp - 0x18], 0x4c3cdc1d
add dword [ebp - 0x18], 0xb3c323e3
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38cef
push 0
call eax
mov ecx, 0x4f24
xor edx, edx
add edx, eax
mov ebx, 0x864f0fa9
add ebx, 0x79f7d457
add ebx, dword [ebp - 0x14]
mov esi, 0x25571aef
xor dword [ebp - 8], edx
mov edi, dword [ebx]
xor dword [ebp - 8], edx
xor edi, esi
add dword [ebp - 0xc], edi
mov dword [edx], edi
xor dword [ebp - 8], ebx
add edx, 4
add ebx, 0x59383ac2
add ebx, 0xa6c7c542
loop 0x406351
add eax, 0x12f63
xor ebx, ebx
add ebx, eax
add eax, 0x596bf344
add eax, 0xa6940cc1
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x404ecc
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 0x405088
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f2d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4050a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f9f
xor eax, eax
push ebp
push 0x404f98
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]
call fcn.00404d24
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f81
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050c4
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 0x404f9f
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 0x405080
cmp byte [ebp - 0xd], 0
jne 0x404fe1
cmp byte [ebp - 0x12], 0
je 0x405080
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ffa
dec ebx
cmp byte [ebx], 0x2e
je 0x405009
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ff9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405080
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405036
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 0x405080
cmp byte [ebp - 0xd], 0
je 0x405080
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 0x405080
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 0x40a4d0
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 0x40a509
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a3c
jmp 0x40a512
mov eax, ebx
mov edx, esi
call fcn.004039a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4