joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ea20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47e3d8]
push 0
lea ecx, [esp + 0x20]
call fcn.00474d4c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044e3c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00474c7a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047153e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047153e
push 1
push 0
push 0
mov ecx, esi
call fcn.004714e6
push 1
push 0
push 1
mov ecx, esi
call fcn.004714e6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00474dbe
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44eba0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00474d4c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044e3c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00474c7a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47e3d8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44ec64
cmp dword [esp + 0x40], 1
jne 0x44ec62
cmp ecx, eax
jge 0x44ec64
mov eax, ecx
cmp eax, 0xc8
jge 0x44ec70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044ea20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x47e3dc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00474dbe
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44f3f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c6e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046f95e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x69d150
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x69c218
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47e0b0]
push eax
mov ecx, edi
call fcn.00474ff4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00476553
test eax, eax
je 0x44f50c
mov ecx, dword [esp + 0x3c]
call fcn.00475021
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x47e3b8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44f4d0
push edi
mov ecx, esi
call fcn.00472685
mov ecx, esi
call fcn.0044f670
cmp dword [esp + 0x38], 1
jne 0x44f505
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004727c0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x451f30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x451f63
push esi
call fcn.00455020
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x451f5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x451fe9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x451fd2
mov eax, dword [esi + 8]
test eax, eax
je 0x451f87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x451fce
cmp eax, 2
je 0x451fd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x451f7a
cmp eax, 3
je 0x451fad
cmp eax, 1
jne 0x451f7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x451f7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x451f7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00452010
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x451ff8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00452010
add esp, 4
pop esi
ret
Function at 0x100023dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100023eb
pop dword [ebp - 8]
mov eax, 0xde26f82e
sub eax, 0xce26d443
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x8ff64507
add dword [ebp - 0x18], 0xbe5c0044
mov dword [ebp - 0x14], 0xa107bf04
sub dword [ebp - 0x14], 0x6ed472bf
mov dword [ebp - 0x10], 0x52e05ffe
add dword [ebp - 0x10], 0xf96be430
mov dword [ebp - 0xc], 0xc3e58991
add dword [ebp - 0xc], 0x3c1a766f
lea eax, [ebp - 0x18]
push eax
mov eax, 0x62464c3d
sub eax, 0x5245ac39
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x85e560be
add dword [ebp - 0x18], 0xee8d0898
mov dword [ebp - 0x14], 0x517f7855
sub dword [ebp - 0x14], 0x101316e0
mov dword [ebp - 0x10], 0xb7beafe3
sub dword [ebp - 0x10], 0x544f4377
mov dword [ebp - 0xc], 0xc3ffe9b2
sub dword [ebp - 0xc], 0xc3ffe9b2
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x90cb0b5e
add eax, 0x7f3594aa
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3580b
push 0
call eax
mov ecx, 0x4399
xor esi, esi
add esi, eax
mov edx, 0x8370c0a3
add edx, 0x8c90375d
add edx, dword [ebp - 8]
mov edi, 0xef30cd6
sub edi, 0xffc9a432
mov dword [ebp - 4], 0xf24c555f
mov ebx, dword [edx]
sub ebx, edi
xor dword [ebp - 4], 0xb0ead6f8
mov dword [esi], ebx
xor dword [ebp - 4], 0x6cdeb82
add esi, 0x45d83965
add esi, 0xba27c69f
add edx, 4
loop 0x10002509
add eax, 0xe109aa41
sub eax, 0xe108a90a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x929a18c5
add ecx, 0x7d65e73b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x6d60d7d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d616878]
jne 0x6d60d7df
repz ret
jmp fcn.6d60de74

Function at 0x6d60e202
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d60e211
pop dword [ebp - 0xc]
mov eax, 0x6a21c9c9
add eax, 0x33f1848
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb6d32b3d
sub dword [ebp - 0x1c], 0x6880e5f2
mov dword [ebp - 0x18], 0x143b7ae4
sub dword [ebp - 0x18], 0xe2082e9f
mov dword [ebp - 0x14], 0x1f0bb6be
sub dword [ebp - 0x14], 0xd2bf7290
mov dword [ebp - 0x10], 0x7c059576
add dword [ebp - 0x10], 0x83fa6a8a
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xca4df1b8
add dword [ebp - 0x1c], 0xaa24779e
mov dword [ebp - 0x18], 0xaf34076b
sub dword [ebp - 0x18], 0x6dc7a5f6
mov dword [ebp - 0x14], 0x3c2a1e84
add dword [ebp - 0x14], 0x27454de8
mov dword [ebp - 0x10], 0xa7c8b2ed
add dword [ebp - 0x10], 0x58374d13
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xd0d0ad49
add eax, 0x9c9042d7
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3799c
push 0
call eax
mov ecx, 0x48f5
xor esi, esi
add esi, eax
mov edx, 0x6d619c00
add edx, dword [ebp - 0xc]
mov edi, 0x8c31b821
sub edi, 0x7b041065
xor dword [ebp - 8], 0xf5177d41
mov ebx, dword [edx]
sub dword [ebp - 4], esi
sub ebx, edi
sub dword [ebp - 8], 0x5943f0fc
mov dword [esi], ebx
add esi, 4
add edx, 0x1c40b6fa
add edx, 0xe3bf490a
loop 0x6d60e324
add eax, 0x20f48513
sub eax, 0x20f36e6c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d600000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40f7b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 8]
mov ebx, eax
mov edi, eax
and ebx, 7
je 0x40f7df
cmp eax, ebx
jge 0x40f7d3
push esi
call fcn.00409010
mov eax, dword [esi + 8]
add esp, 4
mov ecx, ebx
shr dword [esi + 0x10], cl
sub eax, ebx
mov dword [esi + 8], eax
mov edi, eax
xor ecx, ecx
test eax, eax
jle 0x40f802
mov edx, dword [esi + 0x10]
mov al, byte [esi + 0x10]
mov byte [esp + ecx + 0x10], al
inc ecx
lea eax, [edi - 8]
shr edx, 8
mov dword [esi + 0x10], edx
mov edi, eax
test eax, eax
jg 0x40f7e8
mov dword [esi + 8], edi
jns 0x40f823
mov ecx, dword [0x44b8a8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp ecx, 4
jge 0x40f847
mov edi, dword [esi + 4]
mov eax, dword [esi]
nop dword [eax]
cmp eax, edi
jb 0x40f838
xor dl, dl
jmp 0x40f83d
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [esp + ecx + 0x10], dl
inc ecx
cmp ecx, 4
jl 0x40f830
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x13]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [esp + 0x12]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x40f804
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x40f898
mov ecx, dword [0x44b8a8]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.read_past_buffer
xor eax, eax
ret
mov ecx, dword [esi + 0x14]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x1c]
jbe 0x40f8b6
push edi
push ecx
push esi
call fcn.004144e0
add esp, 0xc
test eax, eax
je 0x40f81d
push edi
push dword [esi]
push dword [esi + 0x14]
call fcn.00419e50
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
push ebx
mov ebx, dword [esp + 8]
push edi
lea edi, [ecx + 4]
test edi, edi
jle 0x414a3b
push esi
mov esi, dword [ebx]
sub esi, ecx
sub esi, 4
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44a150]
sub edi, 1
jne 0x414a20
pop esi
mov ecx, dword [ebx]
not eax
mov edx, eax
shr edx, 0x18
pop edi
mov byte [ecx], dl
mov edx, eax
mov ecx, dword [ebx]
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
mov ecx, dword [ebx]
shr edx, 8
mov byte [ecx + 2], dl
mov ecx, dword [ebx]
mov byte [ecx + 3], al
add dword [ebx], 4
pop ebx
ret
Function at 0x41e9d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00418b60
mov eax, dword [0x44a5a8]
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.0042924c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ea12
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb6e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00438710
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 + 0x44bf98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042a3ab
mov ecx, dword [esi*4 + 0x44bf98]
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 0x41eb67
cmp eax, dword [ecx + edi + 0x24]
jne 0x41eb67
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 0x41eb67
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a3ab
add esp, 0x14
test edx, edx
jl 0x41eb67
jg 0x41eadd
test eax, eax
jb 0x41eb67
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb67
jl 0x41eaf7
cmp dword [ebp - 0x1008], eax
ja 0x41eb67
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb15
test ebx, ebx
je 0x41eb4e
cmp ecx, edi
jae 0x41eb4e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb2f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb3b
cmp byte [ecx + 1], 0xa
jne 0x41eb3b
inc ecx
jmp 0x41eb3b
movzx eax, al
movsx eax, byte [eax + 0x44a828]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb15
cmp edx, ebx
jne 0x41eb15
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb6c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00418b49
leave
ret

Function at 0x42589f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4258de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4258de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4258de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4258de
cmp dword [ecx + 0x74], 0xe
jbe 0x4258de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x429843
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 + 0x44bf98]
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 0x429883
cmp byte [ebx], 0xa
jne 0x429883
or byte [edi + eax + 0x28], 4
jmp 0x429888
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 0x429987
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42996a
inc eax
cmp dl, 0xd
je 0x4298b4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4298da
cmp eax, ecx
jae 0x4298e8
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 0x42989c
jmp 0x429987
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 0x429965
cmp dword [ebp - 0x10], 0
je 0x429965
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44bf98]
test byte [eax + edi + 0x28], 0x48
je 0x42993f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42992a
mov byte [esi], dl
jmp 0x42993b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44bf98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x429987
cmp byte [ebp - 1], 0xa
jne 0x42994e
cmp esi, ebx
jne 0x42994e
mov byte [esi], 0xa
jmp 0x429986
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a3c9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x429987
mov byte [esi], 0xd
jmp 0x429986
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44bf98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x429984
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x429987
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429990
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 + 0x44bf98]
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 0x4299d6
cmp word [ebx], dx
jne 0x4299d6
or byte [eax + edi + 0x28], 4
jmp 0x4299db
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 0x429b3e
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 0x429b1e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x429a1c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x429a52
cmp eax, edx
jae 0x429a60
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 0x4299f7
jmp 0x429b3e
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 0x429b19
cmp dword [ebp - 0x18], 0
je 0x429b19
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x44bf98]
test byte [eax + edi + 0x28], 0x48
je 0x429aef
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 0x429ab3
mov word [esi], cx
jmp 0x429aea
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x44bf98]
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 + 0x44bf98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44bf98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x429b3e
pop eax
cmp word [ebp - 4], ax
jne 0x429aff
cmp esi, ebx
jne 0x429aff
mov word [esi], ax
jmp 0x429b3b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042a3c9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x429b3e
push 0xd
pop eax
jmp 0x429afa
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x44bf98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x429b38
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x429b3e
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 0x42c924
Capabilities:
Print debug messages

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

Function at 0x42d31a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442ff0
push 0x442fe8
push str.FlsAlloc
push 0x1f
call fcn.0042d105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d34e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a154]
call esi
jmp 0x42d354
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d398
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443000
push 0x442ff8
push str.FlsGetValue
push 0x21
call fcn.0042d105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d3cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d3d7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443008
push 0x443000
push str.FlsSetValue
push 0x22
call fcn.0042d105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d411
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430cd7
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 0x430d74
push ebx
push esi
call fcn.00430ca0
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.0042fae1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430d21
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d73
push edi
push eax
call fcn.00428a73
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430d41
call fcn.00428a39
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d72
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042fae1
add esp, 0x20
test eax, eax
jne 0x430d60
push edi
call fcn.00428a39
jmp 0x430d68
push ebx
call fcn.00428a39
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 0x4334ec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427bab
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 0x43355b
cmp esi, dword [ebp - 4]
je 0x433556
cmp dword [ebp + 0xc], 0
je 0x433556
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x433533
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043303e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43355d
xor eax, eax
inc eax
jmp 0x43355d
xor eax, eax
pop edi
pop esi
leave
ret