joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40914d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREPublic_DomainBlat
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409185
push str.Failed_to_open_registry_key_for_Blat_using_default._n
call fcn.00401292
pop ecx
jmp 0x40922b
push str._default_
push dword [ebp + 0xc]
mov byte [0x421278], bl
mov byte [0x421dd0], bl
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x4091b7
push str._all_
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4091c6
push 0x414ee7
push dword [ebp + 8]
call fcn.0040906c
pop ecx
pop ecx
push esi
push edi
xor edi, edi
mov esi, 0x421dd0
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 8], 0x101
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc edi
cmp eax, ebx
jne 0x409220
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x409213
push str._all_
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4091cf
push esi
push dword [ebp + 8]
call fcn.0040906c
pop ecx
pop ecx
jmp 0x4091cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aade
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x410c7f
call fcn.004106f0
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401062
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push str.CONTENT_LENGTH
call fcn.0040aa93
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040c2e7
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov edi, dword [ebp + 8]
pop ecx
mov ecx, edi
mov ebx, eax
call fcn.0040106f
lea eax, [ebx + 1]
push eax
mov ecx, edi
call fcn.0040aa57
mov ecx, edi
call fcn.00401156
mov ecx, ebx
sub ecx, eax
mov esi, 0x1000
cmp ecx, esi
jae 0x40ab50
mov ecx, edi
call fcn.00401156
mov esi, ebx
sub esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
jbe 0x40ab7c
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov ecx, edi
call fcn.0040115a
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ab7c
and dword [ebp - 0x10], eax
mov ecx, edi
call fcn.00401156
add eax, dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00401170
cmp dword [ebp - 0x10], esi
jne 0x40ab9e
mov ecx, edi
call fcn.00401156
cmp eax, ebx
jb 0x40ab31
mov ecx, edi
call fcn.0040115a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.00401054
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e831
Capabilities:
Get hostname

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x40e848
add eax, 0xffffec78
ret
xor eax, eax
ret

Function at 0x40e84b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
sub eax, 0x2726
je 0x40e88a
sub eax, 0x45
je 0x40e883
dec eax
je 0x40e87c
mov dword [0x422af4], 1
xor eax, eax
jmp 0x40e88f
mov eax, 0xfa4
jmp 0x40e88f
mov eax, 0xfa6
jmp 0x40e88f
mov eax, 0xfa5
add esp, 0x190
ret
Function at 0x40f3a3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0040c2e7
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.00401156
mov ebx, eax
push 6
pop ecx
xor edx, edx
lea eax, [ebx*8 + 5]
div ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.00401156
mov ecx, eax
push 0x48
lea eax, [esi + 0x47]
pop esi
xor edx, edx
div esi
add ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 1]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040109b
xor esi, esi
cmp ebx, 2
mov byte [ebx + edi], 0
mov byte [ebp - 0xc], 0
jbe 0x40f49f
push 3
xor edx, edx
lea eax, [ebx - 3]
pop ecx
div ecx
inc eax
mov dword [ebp - 4], eax
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp esi, 0x48
jne 0x40f447
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00401119
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40f442
mov ecx, dword [ebp + 0xc]
push 0x412634
call fcn.00401119
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
sub ebx, 3
add edi, 3
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [ebp + esi - 0x54], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [ebp + esi - 0x53], dl
inc esi
mov edx, ecx
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + eax]
inc esi
mov byte [ebp + esi - 0x54], dl
and ecx, 0x3f
mov cl, byte [ecx + eax]
inc esi
mov byte [ebp + esi - 0x54], cl
inc esi
dec dword [ebp - 4]
jne 0x40f41d
jmp 0x40f4a4
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
test ebx, ebx
je 0x40f522
cmp esi, 0x48
jne 0x40f4d2
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00401119
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40f4cd
mov ecx, dword [ebp + 0xc]
push 0x412634
call fcn.00401119
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor ecx, ecx
mov ch, byte [edi]
mov cl, byte [edi + 1]
mov edi, ecx
shr ecx, 0xa
and ecx, 0x3f
mov cl, byte [ecx + eax]
mov byte [ebp + esi - 0x54], cl
mov ecx, edi
shr ecx, 4
and ecx, 0x3f
mov cl, byte [ecx + eax]
inc esi
mov byte [ebp + esi - 0x54], cl
inc esi
cmp ebx, 2
jne 0x40f50a
and edi, 0xf
mov al, byte [eax + edi*4]
mov byte [ebp + esi - 0x54], al
jmp 0x40f515
cmp dword [ebp + 0x14], 0
je 0x40f522
mov byte [ebp + esi - 0x54], 0x3d
inc esi
cmp dword [ebp + 0x14], 0
je 0x40f522
mov byte [ebp + esi - 0x54], 0x3d
inc esi
test esi, esi
je 0x40f54a
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
mov byte [ebp + esi - 0x54], 0
call fcn.00401119
cmp dword [ebp + 0x10], 0
je 0x40f54a
mov ecx, dword [ebp + 0xc]
push 0x412634
call fcn.00401119
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f615
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x410e6d
call fcn.004106f0
sub esp, 0x170
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 1
call fcn.00401062
push 0x2e
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x40f6b3
push eax
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x17c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40f6b3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Content_Type
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
lea esi, [ebp - 0x78]
je 0x40f711
push dword [0x41a950]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x17c]
push eax
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
je 0x40f6f4
mov eax, 0x41a950
mov ebx, eax
mov edi, eax
cmp dword [ebx], 0
je 0x40f700
inc dword [ebp - 0x14]
add edi, 8
push dword [edi]
lea eax, [ebp - 0x17c]
push eax
mov ebx, edi
call esi
test eax, eax
jne 0x40f6d8
mov eax, dword [ebp - 0x14]
mov esi, dword [eax*8 + 0x41a954]
jmp 0x40f711
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40f70c
cmp byte [esi], 0
jne 0x40f711
mov esi, str.application_octet_stream
push 7
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
call fcn.0040f5da
pop ecx
push eax
call fcn.00409557
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0040c2e7
push eax
push esi
push str.Content_Type:__s__r_n_name__s__r_n
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x40f755
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401054
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40f770
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x410380
Capabilities:
Parse credit card information

Disassembly:
xor eax, eax
cmp dword [esp + 8], eax
je 0x4103dd
mov edx, dword [esp + 4]
jmp 0x4103d6
cmp cl, 0x5f
jne 0x410398
add eax, 3
jmp 0x4103d5
cmp cl, 0x61
jb 0x4103a2
cmp cl, 0x7a
jbe 0x4103d4
cmp cl, 0x41
jb 0x4103ac
cmp cl, 0x5a
jbe 0x4103d4
cmp cl, 0x30
jb 0x4103b6
cmp cl, 0x39
jbe 0x4103d4
cmp cl, 0x20
je 0x4103d4
cmp cl, 0x21
je 0x4103d4
cmp cl, 0x2a
je 0x4103d4
cmp cl, 0x2b
je 0x4103d4
cmp cl, 0x2d
je 0x4103d4
cmp cl, 0x2f
jne 0x410393
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x41038e
ret
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
xor edx, edx
jmp 0x4104af
cmp cl, 0xd
je 0x4104ab
cmp cl, 0xa
jne 0x410400
inc eax
inc eax
jmp 0x4104ab
cmp cl, 0x20
jne 0x410422
mov cl, byte [edx + esi + 1]
test cl, cl
je 0x4104a8
cmp cl, 0xd
je 0x4104a8
cmp cl, 0xa
jmp 0x4104a3
cmp byte [0x41b6b9], 0
je 0x410434
test cl, cl
je 0x4104a8
cmp cl, 0x3d
jmp 0x4104a3
cmp cl, 0x3d
je 0x4104a8
cmp cl, 0x3f
je 0x4104a8
cmp cl, 0x21
je 0x4104a8
cmp cl, 0x22
je 0x4104a8
cmp cl, 0x23
je 0x4104a8
cmp cl, 0x24
je 0x4104a8
cmp cl, 0x40
je 0x4104a8
cmp cl, 0x5b
je 0x4104a8
cmp cl, 0x5c
je 0x4104a8
cmp cl, 0x5d
je 0x4104a8
cmp cl, 0x5e
je 0x4104a8
cmp cl, 0x60
je 0x4104a8
cmp cl, 0x7b
je 0x4104a8
cmp cl, 0x7c
je 0x4104a8
cmp cl, 0x7d
je 0x4104a8
cmp cl, 0x7e
je 0x4104a8
cmp cl, 0x7f
je 0x4104a8
cmp cl, 0x20
jb 0x4104a8
cmp cl, 0x7f
jbe 0x4104a5
cmp byte [0x41d134], 0
je 0x4104a8
cmp byte [0x41ac50], 0
je 0x4104a8
inc eax
jmp 0x4104ab
add eax, 3
inc edx
mov cl, byte [edx + esi]
test cl, cl
jne 0x4103eb
pop esi
ret
Function at 0x4104b9
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0040c2e7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00401156
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
je 0x410579
cmp dword [ebp - 8], eax
je 0x4106c3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [ebp - 8], eax
mov esi, str._02X
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
inc dword [ebp - 0xc]
cmp al, 0x20
mov byte [ebp - 0x10], al
jne 0x410516
push 0x5f
jmp 0x410568
cmp al, 0x5f
jne 0x410533
push 0x5f
lea eax, [ebp + 0x10]
push esi
push eax
call edi
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.00401119
jmp 0x41056f
cmp al, 0x61
jb 0x41053b
cmp al, 0x7a
jbe 0x410565
cmp al, 0x41
jb 0x410543
cmp al, 0x5a
jbe 0x410565
cmp al, 0x30
jb 0x41054b
cmp al, 0x39
jbe 0x410565
cmp al, 0x21
je 0x410565
cmp al, 0x2a
je 0x410565
cmp al, 0x2b
je 0x410565
cmp al, 0x2d
je 0x410565
cmp al, 0x2f
je 0x410565
movzx eax, al
push eax
jmp 0x41051c
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00401136
dec dword [ebp - 8]
jne 0x410503
jmp 0x4106c3
cmp dword [ebp - 8], eax
je 0x4106c3
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, str._02X
mov ecx, dword [ebp - 0xc]
mov al, byte [ecx]
inc ecx
cmp al, 0xd
mov byte [ebp - 0x10], al
mov dword [ebp - 0xc], ecx
je 0x4106a8
cmp al, 0xa
jne 0x4105b2
push 0x412634
jmp 0x41069d
cmp al, 0x20
jne 0x4105de
cmp dword [ebp - 8], 1
jbe 0x4105d7
mov al, byte [ecx]
cmp al, 0xd
je 0x4105d7
cmp al, 0xa
je 0x4105d7
push 0x20
mov ecx, ebx
call fcn.00401136
inc dword [ebp - 4]
jmp 0x410692
push 0x20
jmp 0x410679
cmp byte [0x41b6b9], 0
je 0x410613
test al, al
je 0x4105f4
cmp al, 0x3d
je 0x4105f4
push dword [ebp - 0x10]
jmp 0x4105c8
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call edi
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.00401119
add dword [ebp - 4], 3
jmp 0x4105cf
cmp al, 0x3d
je 0x410675
cmp al, 0x3f
je 0x410675
cmp al, 0x21
je 0x410675
cmp al, 0x22
je 0x410675
cmp al, 0x23
je 0x410675
cmp al, 0x24
je 0x410675
cmp al, 0x40
je 0x410675
cmp al, 0x5b
je 0x410675
cmp al, 0x5c
je 0x410675
cmp al, 0x5d
je 0x410675
cmp al, 0x5e
je 0x410675
cmp al, 0x60
je 0x410675
cmp al, 0x7b
je 0x410675
cmp al, 0x7c
je 0x410675
cmp al, 0x7d
je 0x410675
cmp al, 0x7e
je 0x410675
cmp al, 0x7f
je 0x410675
cmp al, 0x20
jb 0x410675
cmp al, 0x7f
jbe 0x4105ef
cmp byte [0x41d134], 0
je 0x410675
cmp byte [0x41ac50], 0
jne 0x4105ef
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call edi
lea eax, [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00401119
add dword [ebp - 4], 3
cmp dword [ebp - 4], 0x47
jle 0x4106a8
push 0x417da4
mov ecx, ebx
call fcn.00401119
and dword [ebp - 4], 0
dec dword [ebp - 8]
jne 0x410590
cmp dword [ebp - 4], 0x47
jle 0x4106c3
push 0x417da4
mov ecx, ebx
call fcn.00401119
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410776
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417db8
push 0x410904
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x422b14], 0xffffffff
or dword [0x422b18], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x422b0c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x422b08]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x422b10], eax
call fcn.00410903
cmp dword [0x41a9f0], 0
jne 0x4107f9
push 0x410900
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004108ee
push 0x419044
push 0x419040
call sub.MSVCRT.dll__initterm
mov eax, dword [0x422b04]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x422b00]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41903c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015ae
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x442720
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x442748
push eax
mov esi, 0x7d5
xor edx, edx
push esi
xor ecx, ecx
call fcn.004cb5e7
push esi
call dword [sym.imp.msvcrt.dll_exit]
add dword [0x4d6b24], esi
pop esi
ret
Function at 0x45c3d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4d4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x428]
push 9
pop ecx
xor eax, eax
push 0x8020
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.msvcrt.dll__open]
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x45c48a
lea eax, [ebp - 0x428]
push eax
push edi
call dword [sym.imp.msvcrt.dll__fstat]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x45c482
mov ecx, dword [ebp - 0x414]
cmp ecx, 0x400000
ja 0x45c482
add ecx, 4
call fcn.00442720
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov dword [esi], ecx
add esi, 4
push dword [ebp - 0x414]
push esi
push edi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [ebp - 0x414]
jne 0x45c471
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
mov eax, esi
jmp 0x45c4d7
test esi, esi
je 0x45c482
add esi, 0xfffffffc
je 0x45c482
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push ebx
push 0
call dword [sym.imp.msvcrt.dll__strerror]
pop ecx
push eax
push 0x425948
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00442802
lea eax, [ebp - 0x404]
push 0xa
push eax
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 0x1c
xor edx, edx
xor ecx, ecx
mov byte [eax], 0x20
lea eax, [ebp - 0x404]
push eax
push 0x973
call fcn.004cb5e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc790
leave
ret
Function at 0x45cb26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [0x4d6258]
push 2
call fcn.00444b6d
mov ecx, dword [0x4d6258]
mov edi, eax
push 0x13
mov dword [ebp - 0xc], edi
call fcn.00444b6d
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], ecx
mov byte [ebx + 0x18], cl
mov word [ebx + 0x1a], cx
push 8
pop ecx
mov dword [ebx + 0x14], eax
call fcn.00442720
mov esi, eax
test esi, esi
je 0x45cb9b
push 0xa
pop eax
push 0x28
pop ecx
mov word [esi], ax
call fcn.00442720
mov dword [esi + 4], eax
xor eax, eax
mov word [esi + 2], ax
jmp 0x45cb9d
xor esi, esi
mov dword [ebx + 0x24], esi
test edi, edi
je 0x45cbac
call fcn.004ca31c
mov dword [ebp - 8], eax
mov ecx, dword [0x4d6258]
push 0x48
call fcn.00444b6d
test eax, eax
je 0x45cbe6
call fcn.004ca3a1
test eax, eax
je 0x45cbe6
mov esi, 0x425a20
push esi
push eax
jmp 0x45cbda
push eax
mov ecx, ebx
call fcn.0045db7b
push esi
push 0
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
test eax, eax
jne 0x45cbcf
push 0x425a18
call dword [sym.imp.msvcrt.dll_getenv]
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
jne 0x45cc10
push 0x424c38
call dword [sym.imp.msvcrt.dll_getenv]
mov esi, eax
mov dword [ebp - 4], eax
pop ecx
test esi, esi
je 0x45cc35
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45cc13
sub esi, ecx
inc esi
mov ecx, esi
call fcn.00442720
push esi
push dword [ebp - 4]
mov edi, eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, edi
cmp dword [ebp - 0x10], 0
mov edi, esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
je 0x45cc4c
xor edi, edi
cmp dword [ebp - 0xc], edi
jne 0x45cc68
jmp 0x45cc54
cmp dword [ebp - 0xc], 0
jne 0x45cc59
mov edi, esi
xor eax, eax
mov dword [ebp - 4], eax
push 0x420174
mov ecx, ebx
call fcn.0045ccc0
mov eax, dword [ebp - 4]
test eax, eax
je 0x45cc74
push eax
mov ecx, ebx
call fcn.0045ccc0
test edi, edi
je 0x45cc80
push edi
mov ecx, ebx
call fcn.0045ccc0
mov eax, dword [ebp - 8]
test eax, eax
je 0x45cc8f
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
je 0x45cc9b
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45ebf1
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [0x4d75bc]
push ebx
push esi
xor ebx, ebx
push edi
test ecx, ecx
jne 0x45ec26
push dword [0x4d47c0]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, eax
mov dword [0x4d75bc], ecx
test ecx, ecx
je 0x45ed3e
movsx eax, word [0x4d52e8]
push eax
push dword [0x4d52e0]
push ecx
call dword [sym.imp.msvcrt.dll_strncpy]
mov edi, dword [0x4d75bc]
add esp, 0xc
mov esi, edi
mov byte [0x4d747e], bl
test ebx, ebx
jne 0x45ed10
mov edx, dword [0x4d47c0]
mov ecx, esi
sub ecx, edi
lea eax, [edx - 3]
cmp ecx, eax
jbe 0x45ecaa
push 2
mov eax, edx
pop ecx
mul ecx
mov dword [esp + 0xc], eax
test edx, edx
ja 0x45ed3e
jb 0x45ec83
cmp eax, 0xffffffff
ja 0x45ed3e
push eax
push edi
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x45ed3e
sub eax, edi
mov dword [0x4d75bc], ecx
add esi, eax
mov eax, dword [esp + 0xc]
mov dword [0x4d47c0], eax
call fcn.0045e631
mov cl, al
mov byte [0x4d747e], cl
test cl, cl
jne 0x45ecc8
mov ebx, 0x83e
mov edi, dword [0x4d75bc]
jmp 0x45ec4c
cmp cl, 0x5c
jne 0x45ece3
mov byte [esi], cl
call fcn.0045e631
mov byte [esi + 1], al
add esi, 2
mov byte [0x4d747e], 0
jmp 0x45ecc0
cmp cl, 0x22
je 0x45ed23
movzx eax, cl
mov byte [esi], cl
inc esi
cmp byte [eax + 0x4d7360], 0
je 0x45ed05
call fcn.0045e631
mov byte [esi], al
inc esi
mov cl, byte [0x4d747e]
cmp cl, 0x22
jne 0x45ecc0
mov edi, dword [0x4d75bc]
mov byte [esi], 0
test ebx, ebx
je 0x45ed56
xor edx, edx
mov ecx, ebx
call fcn.004604e7
push ebx
jmp 0x45ed50
call fcn.0045eb5d
mov ebx, eax
cmp ebx, 0x805
jne 0x45ecff
xor ebx, ebx
xor cl, cl
mov byte [0x4d747e], cl
jmp 0x45ed05
push 0
mov esi, 0x7d5
xor edx, edx
push esi
xor ecx, ecx
call fcn.004cb5e7
push esi
call dword [sym.imp.msvcrt.dll_exit]
push edi
call fcn.0045e5b1
pop edi
pop esi
mov dword [0x4d52c0], eax
mov eax, 0x1b6
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fe3d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
cmp dword [0x4d7460], esi
je 0x45ff1b
push 6
lea eax, [ebp - 0xc]
push eax
push 0x80001004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45fea6
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
pop ecx
mov esi, eax
lea edi, [ebx + 0x7f]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
mov byte [edi + 0x4d7360], al
inc edi
cmp edi, 0x100
jl 0x45fe8a
mov esi, dword [ebp + 8]
jmp 0x45ff1b
movzx ecx, si
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x45fefb
sub eax, 0xd
je 0x45fed8
sub eax, 1
je 0x45fec4
push 3
pop ebx
jmp 0x45ff1b
mov cl, 0x81
movzx eax, cl
inc cl
mov byte [eax + 0x4d7360], bl
cmp cl, 0xfe
jbe 0x45fec6
jmp 0x45ff1b
push 7
mov edx, 0x1010101
mov edi, 0x4d73e1
pop ecx
mov eax, edx
rep stosd dword es:[edi], eax
push 7
pop ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, edx
mov edi, 0x4d7440
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jmp 0x45ff1b
and ecx, 0xfc00
mov eax, 0x800
cmp cx, ax
jne 0x45ff1b
push 0x5e
push ebx
push 0x4d7401
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x4d7460]
cmp eax, 0xffffffff
je 0x45ff30
cmp eax, esi
je 0x45ff30
test esi, esi
je 0x45ff30
push 2
pop ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
mov dword [0x4d7460], esi
xor ecx, ebp
pop esi
pop ebx
call fcn.004cc790
leave
ret 4