joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sbb esi, 0x92
dec eax
add esi, 0xff
not ebx
imul ebx
rcl eax, 0xbb
neg eax
not ebx
mov edx, 0xf2
dec edx
or edx, 0x20
rcr edx, 0x77
add ebx, 0xe6
neg edi
sub edi, 0xc6
neg esi
imul esi
neg esi
inc esi
sbb edx, 0xc6
and esi, 0xa5
neg ebx
sbb edx, 0x2a
bswap esi
rcr edx, 0xc5
rcl esi, 0xb9
inc edx
sbb edx, 0xcc
rcl ebx, 0xba
ror ebx, 0x24
sub edi, 0x5e
add ebx, 0x64
inc ebx
rcl esi, 0xfc
neg edi
sbb esi, 0xdd
and edi, 0x41
neg ebx
mov esi, 0xfa
rol ebx, 0x85
rol edx, 0xf8
bswap eax
or ebx, 0x3b
add edi, 0xa
mov edx, 0xd7
not esi
ror edx, 0xb8
rcl esi, 0xce
dec edx
not esi
xor ecx, ecx
xor edi, edi
add ebx, 0xd0
inc ebx
neg ebx
bswap esi
rcr esi, 0xab
dec edi
inc eax
mov esi, 0x80
rol esi, 0xb1
ror eax, 0x3b
and eax, 0x5b
sbb edi, 0x82
imul edi
and esi, 0x72
add edi, 9
inc edx
bswap edx
mov esi, 0xa1
dec ebx
not edx
neg eax
sub edi, 0xc5
inc ebx
add ebx, 0xd0
inc ebx
and ebx, 0x58
add ebx, 0x15
sub edx, 0x77
not edi
imul edi
not edi
dec eax
neg edi
not eax
or edi, 0x65
and edx, 1
neg edx
dec edx
and edi, 0x73
rcr eax, 0x58
rol ebx, 0xf4
dec edx
bswap edi
imul esi
mov edi, 0x64
not ebx
inc ebx
and esi, 0x38
or ebx, 0x86
not edx
mov ecx, dword [ebp + 0xc]
rcr ebx, 0x4e
ror ebx, 0x86
not esi
not edi
sub esi, 0x73
add edi, 0xe4
inc edx
bswap edi
add esi, 0x38
sbb ebx, 0xe6
imul edi
inc ebx
not eax
inc ebx
mov esi, 9
and edx, 0xb3
rcr eax, 0xcd
add edx, 0xd8
or eax, 3
or edi, 0xd6
rcl edi, 0xe6
inc ebx
inc edi
dec edx
bswap ebx
sub edi, 0x23
bswap edi
dec edx
or edx, 0x54
sbb edx, 0xc6
add ebx, 0xd
ror ebx, 0xd4
dec esi
not edx
dec eax
bswap eax
neg esi
inc ebx
sub eax, 0x94
neg esi
inc edi
ror esi, 0x65
imul eax
bswap edi
dec ebx
imul edi
bswap edx
add edx, 0x9b
mov edx, 0x45
mov ebx, 0x91
mov edi, dword [ebp + 8]
mov eax, esi
xor eax, ebx
xor eax, ebx
not byte [edi]
mov esi, eax
mov esi, eax
xor ebx, eax
xor ebx, ebx
mov eax, ebx
xor ebx, ebx
mov ebx, eax
mov ebx, ebx
mov eax, esi
add byte [edi], 0x54
mov ebx, ebx
mov esi, ebx
mov eax, eax
xor ebx, eax
xor ebx, eax
xor eax, eax
mov ebx, eax
mov esi, ebx
xor eax, eax
sub byte [edi], 0x29
xor ebx, esi
mov eax, esi
xor eax, eax
mov ebx, eax
mov eax, eax
mov esi, ebx
mov ebx, esi
xor esi, ebx
xor ebx, eax
imul byte [edi]
inc edi
loop 0x402e10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b2ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ce90]
jne 0x40b2f4
repz ret
jmp fcn.0041287e
Function at 0x4171fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00411186
and dword [ebp - 4], 0
cmp dword [0x45e9d0], 0
mov ebx, eax
jne 0x4172ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41735e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41735e
push eax
call fcn.00411114
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e9d0], eax
call esi
push eax
call fcn.00411114
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e9d4], eax
call esi
push eax
call fcn.00411114
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e9d8], eax
call esi
push eax
call fcn.00411114
pop ecx
mov dword [0x45e9e0], eax
test eax, eax
je 0x4172ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411114
pop ecx
mov dword [0x45e9dc], eax
mov eax, dword [0x45e9dc]
cmp eax, ebx
je 0x417305
cmp dword [0x45e9e0], ebx
je 0x417305
push eax
call fcn.0041118f
push dword [0x45e9e0]
mov esi, eax
call fcn.0041118f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417305
test edi, edi
je 0x417305
call esi
test eax, eax
je 0x4172fc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4172fc
test byte [ebp - 0xc], 1
jne 0x417305
or dword [ebp + 0x10], 0x200000
jmp 0x41733e
mov eax, dword [0x45e9d4]
cmp eax, ebx
je 0x41733e
push eax
call fcn.0041118f
pop ecx
test eax, eax
je 0x41733e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41733e
mov eax, dword [0x45e9d8]
cmp eax, ebx
je 0x41733e
push eax
call fcn.0041118f
pop ecx
test eax, eax
je 0x41733e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e9d0]
call fcn.0041118f
pop ecx
test eax, eax
je 0x41735e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417360
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003767
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x1003f144]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100037ee
push dword [ebp + 0x20]
mov word [esp + 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0x14]
mov word [esp + 0x12], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100037f0
xor bl, bl
lea ecx, [ebp + 8]
call fcn.1000b9ab
mov ecx, dword [esp + 0x1b4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012861
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10003811
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test edi, edi
je 0x10003841
push 0
push edi
push ebx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000384a
add ebx, eax
sub edi, eax
mov eax, dword [ebp - 4]
jne 0x10003826
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8
or eax, 0xffffffff
jmp 0x10003844
Function at 0x1000384f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.100138f0
mov eax, dword [0x1003f144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2008], ecx
mov dword [ebp - 0x2014], ebx
call fcn.100176d8
mov esi, dword [ebx + 4]
push 0
cdq
pop edi
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x201c], edx
mov dword [ebp - 0x2010], edi
sub esi, dword [ebx]
je 0x10003971
mov eax, 0x1ff0
mov ecx, dword [ebp - 0x2008]
cmp esi, eax
mov ebx, esi
cmovg ebx, eax
mov ecx, dword [ecx + 8]
call fcn.100018e6
mov eax, dword [ebp - 0x2014]
push ebx
mov dword [ebp - 0x1ff8], ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x2004], eax
mov eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2000], eax
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x1ffc], eax
lea eax, [ecx + edi]
push eax
lea eax, [ebp - 0x1ff4]
push eax
call fcn.10013f90
lea eax, [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x2020], eax
lea ecx, [ebp - 0x2004]
mov edi, eax
test eax, eax
jmp 0x10003934
mov eax, dword [ebp - 0x2008]
push 0
push edi
push ecx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003984
mov ecx, dword [ebp - 0x200c]
add ecx, eax
sub edi, eax
mov dword [ebp - 0x200c], ecx
jne 0x10003912
mov edi, dword [ebp - 0x2020]
mov eax, dword [ebp - 0x2008]
push dword [eax + 8]
call fcn.10011dab
pop ecx
cmp edi, 0xffffffff
je 0x10003989
mov edi, dword [ebp - 0x2010]
mov eax, 0x1ff0
add edi, ebx
mov dword [ebp - 0x2010], edi
sub esi, ebx
jne 0x100038a3
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012861
leave
ret 4
or edi, 0xffffffff
jmp 0x10003942
xor al, al
jmp 0x10003973
Function at 0x1000914c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x10009176
jl 0x1000916d
test ebx, ebx
jne 0x10009176
xor eax, eax
xor edx, edx
jmp 0x1000922f
cmp dword [ecx + 0x38], 0
je 0x10009189
push esi
push ebx
push edx
call fcn.1000a375
jmp 0x1000922f
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100091c9
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x100091c9
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.10013f90
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x10009225
call fcn.1000b34f
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x10009210
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.1001b26e
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x10009225
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x100091e1
mov eax, edi
test eax, eax
je 0x10009225
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.1001b26e
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000c0be
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1003030c
call fcn.10013071
mov ebx, ecx
mov esi, dword [ebp + 0x10]
push 0x24
call fcn.10012929
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 4]
and dword [ebp - 4], 0
push esi
mov eax, dword [eax]
mov dword [edi], eax
call fcn.1000aeb8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [ebp - 4], 1
lea esi, [ebx + 4]
push esi
push eax
push edi
push 0x1000f68a
push eax
push eax
call fcn.10017d46
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x1000c129
mov eax, ebx
call fcn.10013020
ret 0x10
and dword [esi], 0
push 6
call fcn.100113ee
int3

Function at 0x100111a7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10011183
pop esi
leave
ret 8
Function at 0x100122d4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.100121ec
mov edi, eax
test edi, edi
jne 0x100122fb
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x10012344
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1001233f
test al, 0x10
je 0x1001233f
test eax, 0x400
je 0x1001233b
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.1001234a
push dword [ebp - 4]
mov esi, eax
call fcn.10012228
test esi, esi
jne 0x1001233f
xor edx, edx
jmp 0x10012341
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x1001d1e1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001d220
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d220
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d220
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001d220
cmp dword [ecx + 0x74], 0xe
jbe 0x1001d220
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10021779
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100350ec
push 0x100350e4
push str.FlsAlloc
push 0x1f
call fcn.10021601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100217ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311bc]
call esi
jmp 0x100217b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100217f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100350fc
push 0x100350f4
push str.FlsGetValue
push 0x21
call fcn.10021601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002182e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10021836
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035104
push 0x100350fc
push str.FlsSetValue
push 0x22
call fcn.10021601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021870
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100311bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023756
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100138f0
mov eax, dword [0x1003f144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001e16b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10023798
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100238f4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002f070
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100423a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10024f54
mov ecx, dword [esi*4 + 0x100423a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100238ed
cmp eax, dword [ecx + edi + 0x24]
jne 0x100238ed
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100238ed
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10024f54
add esp, 0x14
test edx, edx
jl 0x100238ed
jg 0x10023863
test eax, eax
jb 0x100238ed
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100238ed
jl 0x1002387d
cmp dword [ebp - 0x1008], eax
ja 0x100238ed
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002389b
test ebx, ebx
je 0x100238d4
cmp ecx, edi
jae 0x100238d4
mov al, byte [ecx]
cmp al, 0xd
jne 0x100238b5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100238c1
cmp byte [ecx + 1], 0xa
jne 0x100238c1
inc ecx
jmp 0x100238c1
movzx eax, al
movsx eax, byte [eax + 0x1003f3c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002389b
cmp edx, ebx
jne 0x1002389b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100238f2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10012861
leave
ret
Function at 0x100243ec
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 + 0x100423a0]
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 0x1002442c
cmp byte [ebx], 0xa
jne 0x1002442c
or byte [edi + eax + 0x28], 4
jmp 0x10024431
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 0x10024530
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10024513
inc eax
cmp dl, 0xd
je 0x1002445d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10024483
cmp eax, ecx
jae 0x10024491
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 0x10024445
jmp 0x10024530
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 0x1002450e
cmp dword [ebp - 0x10], 0
je 0x1002450e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100423a0]
test byte [eax + edi + 0x28], 0x48
je 0x100244e8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100244d3
mov byte [esi], dl
jmp 0x100244e4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100423a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10024530
cmp byte [ebp - 1], 0xa
jne 0x100244f7
cmp esi, ebx
jne 0x100244f7
mov byte [esi], 0xa
jmp 0x1002452f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10024f72
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10024530
mov byte [esi], 0xd
jmp 0x1002452f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100423a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002452d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10024530
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10024539
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 + 0x100423a0]
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 0x1002457f
cmp word [ebx], dx
jne 0x1002457f
or byte [eax + edi + 0x28], 4
jmp 0x10024584
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 0x100246e7
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 0x100246c7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100245c5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100245fb
cmp eax, edx
jae 0x10024609
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 0x100245a0
jmp 0x100246e7
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 0x100246c2
cmp dword [ebp - 0x18], 0
je 0x100246c2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100423a0]
test byte [eax + edi + 0x28], 0x48
je 0x10024698
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 0x1002465c
mov word [esi], cx
jmp 0x10024693
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100423a0]
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 + 0x100423a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100423a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100246e7
pop eax
cmp word [ebp - 4], ax
jne 0x100246a8
cmp esi, ebx
jne 0x100246a8
mov word [esi], ax
jmp 0x100246e4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10024f72
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100246e7
push 0xd
pop eax
jmp 0x100246a3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100423a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100246e1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100246e7
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 0x10027099
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 0x10027136
push ebx
push esi
call fcn.10027062
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.10025e5e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100270e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10027135
push edi
push eax
call fcn.10021b99
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10027103
call fcn.10020f78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10027134
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10025e5e
add esp, 0x20
test eax, eax
jne 0x10027122
push edi
call fcn.10020f78
jmp 0x1002712a
push ebx
call fcn.10020f78
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 0x100297e7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001e754
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 0x10029856
cmp esi, dword [ebp - 4]
je 0x10029851
cmp dword [ebp + 0xc], 0
je 0x10029851
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002982e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10029339
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10029858
xor eax, eax
inc eax
jmp 0x10029858
xor eax, eax
pop edi
pop esi
leave
ret