joyce8/EMBER2024-capa huggingface dataset:
Function at 0x556ecc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x556fe2
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x556fa8
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040337c
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.00404ee0
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlA
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x556f71
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0xb
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x56a7e8]
call fcn.0040707c
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x55645c]
call fcn.00556b30
call fcn.004043b8
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x64], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.00404f40
lea eax, [ebx + 0x5c]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404f40
jmp 0x556fc2
xor eax, eax
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
call fcn.00404a20
lea eax, [ebx + 0x5c]
call fcn.00404a20
xor eax, eax
mov dword [ebx + 0x64], eax
lea eax, [ebx + 0x3c]
mov edx, esi
call fcn.00404a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556fe9
lea eax, [ebp - 0x48]
call fcn.00404a20
ret
Function at 0x5571e0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test dl, dl
je 0x55730b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39], 0
jne 0x557342
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404ce0
test eax, eax
jle 0x557215
mov ebx, 3
jmp 0x557217
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x557227
call fcn.0040da30
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404ee0
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00404ee0
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], esi
test esi, esi
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00556cd4
xor eax, eax
push ebp
push 0x5572e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x60]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
push eax
call sub.wininet.dll_InternetConnectA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], ebx
test ebx, ebx
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00556cd4
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x557342
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x55731b
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x557333
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5624e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
mov edx, dword [0x558960]
call fcn.0040596c
xor eax, eax
push ebp
push 0x562612
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x56262c
call fcn.0055b1f4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x78]
mov eax, dword [ebp + 0x24]
call fcn.00409b20
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x74]
mov ecx, 0xd
mov eax, 0x562658
call fcn.0040aa98
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x5626d4
call fcn.00404d2c
mov eax, dword [ebp - 0x7c]
call fcn.0055b1f4
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562619
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
lea eax, [ebp + 8]
mov edx, dword [0x558960]
call fcn.00405828
ret
Function at 0x401220
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc27160]
mov ecx, dword [0xc260b4]
shr eax, 3
sub esp, 0x81c
test eax, eax
jbe 0x401328
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0xc27160], 0x959
jne 0x40130e
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push str.ducofikinevodugucexejayeyide_jofubupazekatajikuwayoj
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
lea eax, [ebp - 0x81c]
push eax
push 0
push str.lebogegimoramigefunolerulodidi_peyewuvuhicucalikid_suyucedizejabije
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push str.kemafuvoriwidekubinujogin
push str.vuvetutijapaliy
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0
push 0
push 0
push str.laduvig_xupewufodarahut
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
push edx
call fcn.00401030
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d28b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x454018]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040becf
push 0x449c3c
lea ecx, [esp + 0x1c]
call fcn.0040be43
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40d309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40d331
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0040cfca
mov edi, eax
jmp 0x40d330
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040d160
mov ebx, eax
test ebx, ebx
jns 0x40d337
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0040cf85
pop ecx
mov edi, ebx
pop ecx
test esi, esi
je 0x40d34b
jmp 0x40d345
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040d07b
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419926
mov esp, ebp
pop ebp
ret
Function at 0x40e08b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e1c8
Function at 0x40ef0e
Capabilities:
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x43e13b
call fcn.0041a2c0
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x2c]
xor eax, eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x68]
call fcn.0040eaa7
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040eccd
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004020b7
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x449e18
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00427475
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x40efdd
xor eax, eax
lea ecx, [ebp - 0x44]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
call fcn.004020b7
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x40f063
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x40f05a
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004023a9
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x40f05a
mov ecx, ebx
call fcn.0040eeb8
mov edi, eax
test edi, edi
je 0x40f010
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push edi
call fcn.0040f84e
push dword [ebp - 0x4c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push 1
cmovae ecx, dword [ebp - 0x2c]
push edi
push ecx
call fcn.00427695
add esp, 0x10
push dword [ebp - 0x4c]
call fcn.00427874
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00402020
lea ecx, [ebp - 0x44]
call fcn.004020b7
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x40f063
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x40f05a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004023a9
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.00419934
pop ecx
pop ecx
mov eax, esi
call fcn.0041a26f
ret
Function at 0x41166a
Capabilities:
Read file via mapping

Disassembly:
push 0x64
mov eax, 0x43e6ce
call fcn.0041a2c0
mov eax, dword [ebp + 0xc]
lea edi, [ecx + 0x84]
mov ebx, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x2c], edi
call fcn.004031d6
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xd], 0
jne 0x4116b7
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.00402059
test al, al
jne 0x4116b7
cmp esi, dword [edi]
je 0x4116b7
mov eax, dword [esi + 0x30]
jmp 0x41176b
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.0040eaa7
xor esi, esi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 4], esi
call fcn.0040eccd
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004020b7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x411761
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x411761
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41175f
push ebx
lea ecx, [ebp - 0x70]
call fcn.00402372
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
call fcn.004171ec
lea ecx, [ebp - 0x70]
call fcn.00402417
jmp 0x411761
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.004020b7
mov eax, esi
call fcn.0041a26f
ret 8

Function at 0x41a7c6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a805
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a805
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a805
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a805
cmp dword [ecx + 0x74], 0xe
jbe 0x41a805
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4272fc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x454018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x442be0
push esi
call fcn.0042dd22
pop ecx
pop ecx
test eax, eax
jne 0x42732a
xor al, al
jmp 0x4273a7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0042703d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x427364
push dword [ebp - 0x210]
call fcn.00427c7e
xor al, al
jmp 0x4273a5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42736a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x42738a
push edx
call fcn.00427233
pop ecx
test al, al
je 0x427355
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x427398
mov bl, 1
push dword [ebp - 0x210]
call fcn.00427c7e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419926
leave
ret
Function at 0x42d5b7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4442b4
push 0x4442ac
push str.FlsAlloc
push 0x1f
call fcn.0042d3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d5eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a0]
call esi
jmp 0x42d5f1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d635
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4442c4
push 0x4442bc
push str.FlsGetValue
push 0x21
call fcn.0042d3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d66c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d674
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4442cc
push 0x4442c4
push str.FlsSetValue
push 0x22
call fcn.0042d3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d6ae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4402a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42ebb0
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 + 0x4599e0]
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 0x42ebf0
cmp byte [ebx], 0xa
jne 0x42ebf0
or byte [edi + eax + 0x28], 4
jmp 0x42ebf5
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 0x42ecf4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42ecd7
inc eax
cmp dl, 0xd
je 0x42ec21
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42ec47
cmp eax, ecx
jae 0x42ec55
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 0x42ec09
jmp 0x42ecf4
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 0x42ecd2
cmp dword [ebp - 0x10], 0
je 0x42ecd2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4599e0]
test byte [eax + edi + 0x28], 0x48
je 0x42ecac
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42ec97
mov byte [esi], dl
jmp 0x42eca8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4599e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42ecf4
cmp byte [ebp - 1], 0xa
jne 0x42ecbb
cmp esi, ebx
jne 0x42ecbb
mov byte [esi], 0xa
jmp 0x42ecf3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00438f4e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42ecf4
mov byte [esi], 0xd
jmp 0x42ecf3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4599e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42ecf1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42ecf4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42ecfd
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 + 0x4599e0]
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 0x42ed43
cmp word [ebx], dx
jne 0x42ed43
or byte [eax + edi + 0x28], 4
jmp 0x42ed48
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 0x42eeab
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 0x42ee8b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42ed89
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42edbf
cmp eax, edx
jae 0x42edcd
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 0x42ed64
jmp 0x42eeab
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 0x42ee86
cmp dword [ebp - 0x18], 0
je 0x42ee86
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4599e0]
test byte [eax + edi + 0x28], 0x48
je 0x42ee5c
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 0x42ee20
mov word [esi], cx
jmp 0x42ee57
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4599e0]
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 + 0x4599e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4599e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42eeab
pop eax
cmp word [ebp - 4], ax
jne 0x42ee6c
cmp esi, ebx
jne 0x42ee6c
mov word [esi], ax
jmp 0x42eea8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00438f4e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42eeab
push 0xd
pop eax
jmp 0x42ee67
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4599e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42eea5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42eeab
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 0x433169
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 0x433206
push ebx
push esi
call fcn.00433132
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.004316d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4331b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433205
push edi
push eax
call fcn.0042bd35
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4331d3
call fcn.0042bcfb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433204
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004316d7
add esp, 0x20
test eax, eax
jne 0x4331f2
push edi
call fcn.0042bcfb
jmp 0x4331fa
push ebx
call fcn.0042bcfb
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 0x433209
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43321a
pop esi
ret
push ebx
push edi
push esi
call fcn.00433132
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042bd35
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x433242
push ebx
push esi
push edi
call fcn.0041b0b0
add esp, 0xc
push 0
call fcn.0042bcfb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x433612
Capabilities:
Set environment variable

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

Function at 0x4357fd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042ba10
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 0x43586c
cmp esi, dword [ebp - 4]
je 0x435867
cmp dword [ebp + 0xc], 0
je 0x435867
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435844
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043534f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43586e
xor eax, eax
inc eax
jmp 0x43586e
xor eax, eax
pop edi
pop esi
leave
ret