joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ee6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41b2c0]
xor ecx, ecx
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x410f20
xor eax, eax
jmp 0x41108a
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41c7a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x410f5e
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00412b87
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410ff8
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41105b
jmp 0x410f82
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x410fbd
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410fae
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x410f8e
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41101c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x411025
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x410f80
jmp 0x411025
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41101c
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x411025
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x411085
cmp dword [ebp - 0x68], eax
je 0x411058
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41104d
call fcn.00411214
mov dword [eax], 9
call fcn.00411222
mov dword [eax], esi
jmp 0x411080
push dword [ebp - 0x68]
call fcn.00411230
pop ecx
jmp 0x411080
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41106d
cmp byte [edi], 0x1a
jne 0x41106d
xor eax, eax
jmp 0x411088
call fcn.00411214
mov dword [eax], 0x1c
call fcn.00411222
and dword [eax], 0
or eax, 0xffffffff
jmp 0x411088
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
pop edi
call fcn.00407d96
add ebp, 0x3a4
leave
ret
Function at 0x4112a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41c41c], ebx
push esi
push edi
jne 0x411328
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411363
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41c41c], eax
je 0x411363
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41c420], eax
call esi
cmp dword [0x41c090], 2
mov dword [0x41c424], eax
jne 0x411328
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41c42c], eax
je 0x411328
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41c428], eax
mov eax, dword [0x41c428]
test eax, eax
je 0x41136d
call eax
test eax, eax
je 0x411354
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41c42c]
test eax, eax
je 0x411354
test byte [ebp - 8], 1
jne 0x41136d
cmp dword [0x41c09c], 4
jb 0x411367
or byte [ebp + 0x12], 0x20
jmp 0x41138c
xor eax, eax
jmp 0x41139c
or byte [ebp + 0x12], 4
jmp 0x41138c
mov eax, dword [0x41c420]
test eax, eax
je 0x41138c
call eax
mov ebx, eax
test ebx, ebx
je 0x41138c
mov eax, dword [0x41c424]
test eax, eax
je 0x41138c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41c41c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413882
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x418ca8
call fcn.0040a76c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x41c4fc], edi
jne 0x4138c6
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4138b1
mov dword [0x41c4fc], ebx
jmp 0x4138c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4138c6
mov dword [0x41c4fc], 2
mov eax, dword [0x41c4fc]
cmp eax, ebx
jne 0x4138e6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4139a9
cmp eax, 2
je 0x4138ef
cmp eax, edi
jne 0x413917
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x413902
mov eax, dword [0x41c3e4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41391e
xor eax, eax
jmp 0x4139a9
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00407db0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x413951
cmp esi, edi
jne 0x413967
push dword [ebp - 0x20]
call fcn.0040c7f7
pop ecx
mov esi, eax
cmp esi, edi
je 0x413917
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41399a
cmp dword [ebp + 0x14], edi
jne 0x413984
push edi
push edi
jmp 0x41398a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4139a6
push esi
call fcn.00408242
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040a7a7
ret
Function at 0x4139b7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x418cb8
call fcn.0040a76c
xor esi, esi
cmp dword [0x41c500], esi
jne 0x4139fb
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4139e6
mov dword [0x41c500], edi
jmp 0x4139fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4139fb
mov dword [0x41c500], 2
mov eax, dword [0x41c500]
cmp eax, 2
je 0x413adc
cmp eax, esi
je 0x413adc
cmp eax, 1
jne 0x413a40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x413a29
mov eax, dword [0x41c3e4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x413a47
xor eax, eax
jmp 0x413aee
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00407db0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x413a7d
cmp edi, esi
jne 0x413a98
lea eax, [ebx + ebx]
push eax
call fcn.0040c7f7
pop ecx
mov edi, eax
cmp edi, esi
je 0x413a40
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413acb
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x413ab5
push esi
push esi
jmp 0x413abb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x413ad7
push edi
call fcn.00408242
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x413aee
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040a7a7
ret
Function at 0x4140f2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41410b
or eax, 0xffffffff
jmp 0x41416c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x414168
push 0x3d
push esi
call fcn.004142fc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x414168
cmp esi, eax
je 0x414168
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41c0b0]
sete cl
cmp eax, dword [0x41c0b4]
mov dword [ebp - 8], ecx
jne 0x41414e
mov edi, eax
call fcn.0041408c
mov dword [0x41c0b0], eax
cmp eax, ebx
jne 0x4141a7
cmp dword [ebp + 0xc], ebx
je 0x414170
cmp dword [0x41c0b8], ebx
je 0x414170
call fcn.00413bf9
test eax, eax
je 0x4141a7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x414179
xor eax, eax
jmp 0x41416b
push 4
call fcn.0040c7f7
cmp eax, ebx
pop ecx
mov dword [0x41c0b0], eax
je 0x414168
mov dword [eax], ebx
cmp dword [0x41c0b8], ebx
jne 0x4141a7
push 4
call fcn.0040c7f7
cmp eax, ebx
pop ecx
mov dword [0x41c0b8], eax
je 0x414168
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41c0b0]
call fcn.0041403a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x414208
cmp dword [esi], ebx
je 0x414208
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00408242
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4141eb
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x414249
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4141e2
mov eax, edi
shl eax, 2
push eax
push dword [0x41c0b0]
call fcn.0040896c
cmp eax, ebx
pop ecx
pop ecx
je 0x414249
jmp 0x414244
cmp dword [ebp - 8], ebx
jne 0x4142b4
cmp edi, ebx
jge 0x414217
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41c0b0]
call fcn.0040896c
cmp eax, ebx
pop ecx
pop ecx
je 0x414168
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x41c0b0], eax
cmp dword [ebp + 0xc], ebx
je 0x41429e
push dword [ebp - 4]
call fcn.00407800
inc eax
inc eax
push eax
call fcn.0040c7f7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41429e
push dword [ebp - 4]
push esi
call fcn.00407700
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x414297
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00408242
pop ecx
cmp dword [ebp - 8], ebx
je 0x4142ac
push dword [ebp - 4]
call fcn.00408242
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41416b
push dword [ebp - 4]
call fcn.00408242
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x414175
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404500
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004045f0
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a4
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403028
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x496008], 0x8088405
inc edx
mov dword [ebx + 0x496008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403588
Capabilities:
Query or enumerate registry value

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

Function at 0x404300
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49804c], 0
je 0x404361
cmp word [0x498220], 0xd7b2
jne 0x404329
cmp dword [0x498228], 0
jbe 0x404329
mov eax, 0x49821c
call dword [0x498238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x496058
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 0x404388
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x496020], 0
jne 0x40437d
push 0
push 0x496078
push 0x496058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40447c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ee4
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 0xf0019
push 0
push 0x406114
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406114
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406130
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ff0
xor eax, eax
push ebp
push 0x405fe9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d2c
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 0x405fce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406150
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405fce
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ff0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40610a
cmp byte [ebp - 0xd], 0
jne 0x406037
cmp byte [ebp - 0x12], 0
je 0x40610a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406050
dec ebx
cmp byte [ebx], 0x2e
je 0x40605f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40604f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40610a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40609c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40610a
cmp byte [ebp - 0xd], 0
je 0x40610a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40610a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x40ade0
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 0x40ae19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045f0
jmp 0x40ae22
mov eax, ebx
mov edx, esi
call fcn.00404554
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c310
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c374
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404768
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408bbc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c37b
lea eax, [ebp - 0xc]
call fcn.00404500
ret

Function at 0x41df48
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0041dda4
pop ebx
ret

Function at 0x41df68
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dda4
dec esi
jne 0x41df8a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41f0b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x498a28
cmp dword [edi], 0
jne 0x41f130
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x498a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x496528
mov ecx, 2
call fcn.00402964
mov edx, 0x41f08c
lea eax, [esi + 5]
call fcn.0041f0ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f0ac
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f105
mov dword [0x498a24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4206e4
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 0x4206ea
ret
Function at 0x422b9c
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 0x422bed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422bd4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422bc4
jmp 0x422bed
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 0x422bd5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433510
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004049a0
xor eax, eax
push ebp
push 0x43363e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x433611
xor eax, eax
push ebp
push 0x43360a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047b8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4335df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x4335ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047b8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004049b0
mov edx, ebx
pop ecx
call fcn.00402964
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4335d5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x497a7c]
mov dl, 1
mov eax, dword [0x4079e4]
call fcn.0040b650
call fcn.00403edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433645
lea eax, [ebp - 4]
call fcn.00404500
ret