joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40acf0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ax, word [0x4482e0]
cmp ax, 0xcb
je 0x40adfc
cmp ax, 0xcc
je 0x40adfc
mov edx, dword [0x4580c0]
test edx, edx
je 0x40ad25
mov eax, dword [0x457f70]
call edx
mov ebx, eax
jmp 0x40ad2a
mov ebx, 0x457f74
cmp word [0x457f60], 0
jle 0x40ad50
mov eax, 0x457f40
call fcn.0040af80
mov eax, ebx
call fcn.0040a870
mov eax, ebx
call fcn.0040a8f0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40ad72
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40ad6d
mov edx, edi
mov eax, ebx
call fcn.00409cc0
jmp 0x40ad70
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40ad58
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x457f60], 0
jle 0x40adfc
mov edx, 0x457e80
mov eax, ebx
call fcn.00409e10
mov edi, eax
test edi, edi
je 0x40adcc
mov eax, dword [0x457f14]
mov dword [edi + 0xc], eax
cmp dword [0x457f14], 0
je 0x40adc0
mov eax, dword [0x457f14]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x457f14], eax
nop
sub word [0x457f60], 1
cmp word [0x457f60], 0
sete bl
mov eax, 0x457f40
call fcn.0040af90
test bl, bl
je 0x40adfc
mov eax, 0x457f40
call fcn.0040af70
lea esi, [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x4572b0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.0040d070
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4572b0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004027e0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x448350], eax
mov ebx, eax
jmp 0x40d033
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x40cf18
cmp byte [ebx], 0
je 0x40d03c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40cf93
mov al, byte [ebx]
cmp al, 1
jb 0x40cf88
sub al, 0x20
jbe 0x40cf58
sub al, 2
je 0x40cf6c
jmp 0x40cf88
mov al, byte [ebp - 0x114]
test al, al
je 0x40cf98
add dword [ebp - 0x110], 1
jmp 0x40cf90
cmp byte [ebx + 1], 0x22
je 0x40cf83
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40cf90
add ebx, 1
jmp 0x40cf90
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40cf48
test dword [ebp - 0x10c], 0xffffffff
je 0x40d02c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.0040d070
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4572b0]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x40d023
mov al, byte [ebx]
cmp al, 1
jb 0x40d018
sub al, 0x20
jbe 0x40cfe8
sub al, 2
je 0x40cffc
jmp 0x40d018
mov al, byte [ebp - 0x114]
test al, al
je 0x40d028
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x40d020
cmp byte [ebx + 1], 0x22
je 0x40d013
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40d020
add ebx, 1
jmp 0x40d020
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40cfd8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40cf1b
mov ebx, dword [ebp - 0x10c]
mov dword [0x4572a0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4572b0
call fcn.0040ab20
mov eax, dword [0x4572b0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
mov dword [ebp - 8], 0
xor eax, eax
push fcn.0040f000
push ebp
push 0x40dd10
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x458880], eax
lea eax, [ebp - 4]
mov edx, 0x10000
call fcn.00409b00
push 0x8000
push dword [ebp - 4]
push dword [0x458880]
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 0
push 0
push 0x8000
push dword [ebp - 4]
push 0
push 0xfde9
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
mov edx, ebx
mov eax, 0x49b020
mov cx, 0xfde9
call fcn.00406c50
push 0
push 0
push ebx
mov eax, dword [0x49b020]
push eax
push 0x8000
push dword [ebp - 4]
push 0
push 0xfde9
call sub.kernel32.dll_WideCharToMultiByte
mov eax, dword [0x49b020]
lea edx, [ebp - 8]
call fcn.00434a50
mov edx, dword [ebp - 8]
mov eax, 0x49b020
call fcn.00405ff0
mov eax, dword [ebp - 4]
call fcn.00409b30
lea eax, [ebp - 4]
mov edx, 0x10000
call fcn.00409b00
push 0x8000
push dword [ebp - 4]
push dword [0x448b00]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
push 0
push 0
push 0
push 0
push ebx
push dword [ebp - 4]
push 0
push 0xfde9
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
lea edx, [ebx + 1]
mov eax, 0x49b030
mov cx, 0xfde9
call fcn.00406c50
push 0
push 0
push ebx
mov eax, dword [0x49b030]
push eax
push 0x8000
push dword [ebp - 4]
push 0
push 0xfde9
call sub.kernel32.dll_WideCharToMultiByte
mov eax, 0x49b030
call fcn.00402ae0
lea edx, [ebx + 1]
mov byte [eax + edx - 1], 0x5c
mov eax, dword [ebp - 4]
call fcn.00409b30
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0040f000
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414340
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x414380
cmp eax, 0xcb
je 0x414399
cmp eax, 0xcc
je 0x414373
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x15
mov dword [edx + 0x18], eax
mov dword [esp], ebx
call dword [edx]
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
jmp fcn.00414260
mov dword [esp], ebx
call fcn.0041e030
cmp byte [ebx + 0x40], 0
jne 0x414418
mov dword [ebx + 0x14], 0xcb
mov eax, dword [ebx + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4143f5
mov edx, dword [ebx + 8]
test edx, edx
je 0x4143b1
mov dword [esp], ebx
call dword [edx]
mov eax, dword [ebx + 0x1a0]
mov dword [esp], ebx
call dword [eax]
test eax, eax
je 0x414410
cmp eax, 2
je 0x4143f5
mov edx, dword [ebx + 8]
test edx, edx
je 0x4143a8
cmp eax, 1
je 0x4143d6
cmp eax, 3
jne 0x4143a8
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
add eax, 1
cmp eax, ecx
mov dword [edx + 4], eax
jl 0x4143a8
add ecx, dword [ebx + 0x120]
test edx, edx
mov dword [edx + 8], ecx
jne 0x4143ac
jmp 0x4143b1
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x84], eax
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
jmp fcn.00414260
xor eax, eax
add esp, 0x14
pop ebx
pop ebp
ret
mov dword [ebx + 0x14], 0xcf
mov eax, 1
jmp 0x414412
Function at 0x42a320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esp], esi
call fcn.0042a530
mov dword [esp + 4], 0x54
mov dword [esp], esi
mov dword [ebp - 0x10], eax
call fcn.0042a480
test eax, eax
mov ebx, eax
je 0x42a450
mov eax, dword [ebp - 0x10]
mov dword [ebx], fcn.004296a0
mov dword [ebx + 4], fcn.00429e60
mov dword [ebx + 8], fcn.0042a010
mov dword [ebx + 0xc], fcn.00429f30
mov dword [ebx + 0x10], 0x429890
mov dword [ebx + 0x14], 0x429800
mov dword [ebx + 0x18], 0x42a0f0
mov dword [ebx + 0x1c], 0x429c90
mov dword [ebx + 0x20], 0x429ac0
mov dword [ebx + 0x24], fcn.00429920
mov dword [ebx + 0x28], 0x429a60
mov dword [ebx + 0x30], 0x3b9aca00
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], 0x44ce54
call sub.msvcrt.dll_getenv
test eax, eax
je 0x42a432
lea edx, [ebp - 9]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x10]
mov byte [ebp - 9], 0x78
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
test eax, eax
jle 0x42a432
movzx eax, byte [ebp - 9]
cmp al, 0x4d
jne 0x42a440
imul eax, dword [ebp - 0x10], 0x3e8
imul eax, eax, 0x3e8
mov dword [ebx + 0x2c], eax
add esp, 0x20
pop ebx
pop esi
pop ebp
ret
cmp al, 0x6d
je 0x42a422
mov eax, dword [ebp - 0x10]
jmp 0x42a429
mov dword [esp], esi
call fcn.0042a540
mov eax, dword [esi]
mov dword [eax + 0x14], 0x38
mov dword [eax + 0x18], 0
mov dword [esp], esi
call dword [eax]
jmp 0x42a357
Function at 0x42a550
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + 0x1b8]
cmp dword [edx + 0x4c], 1
mov dword [ebp - 0x2c], eax
je 0x42a6cd
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov byte [ecx + 0x1c], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
mov ecx, edx
mov edx, dword [edx + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x38]
add edx, 0x100
mov dword [esp + 8], edx
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x14]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
cmp dword [eax + 0x64], 0
jle 0x42a6c5
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax + edx + 0x20]
mov eax, dword [ebp - 0x3c]
mov edx, eax
sar edx, 0x1f
idiv ecx
cmp dword [ebp - 0x38], 0
mov ebx, eax
mov dword [ebp - 0x3c], eax
je 0x42a5ff
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x18]
add dword [eax], 0xff
mov edx, dword [ebp - 0x2c]
xor edi, edi
mov eax, dword [edx + 0x18]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx]
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x20], eax
lea eax, [ecx + ecx - 2]
add ecx, 0xfe
mov edx, ecx
mov dword [ebp - 0x1c], eax
sar edx, 0x1f
mov eax, ecx
idiv dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x28], ecx
mov esi, eax
cmp esi, edi
jge 0x42a65e
lea ebx, [edx + 1]
imul ecx, ebx, 0x1fe
add ecx, dword [ebp - 0x28]
jmp 0x42a646
add ebx, 1
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
add ecx, 0x1fe
idiv dword [ebp - 0x1c]
cmp eax, edi
jl 0x42a643
mov edx, ebx
mov esi, eax
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x20]
imul eax, edx
mov byte [ecx + edi], al
add edi, 1
cmp edi, 0x100
jne 0x42a631
cmp dword [ebp - 0x38], 0
je 0x42a6ae
mov ebx, dword [ebp - 0x20]
mov eax, 1
mov edx, dword [ebp - 0x20]
add ebx, 0xff
mov esi, ebx
nop
movzx ebx, byte [edx]
mov ecx, eax
neg ecx
mov byte [edx + ecx], bl
movzx ecx, byte [esi]
mov byte [edx + eax + 0xff], cl
add eax, 1
cmp eax, 0x100
jne 0x42a690
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x40]
add dword [ebp - 0x34], 4
cmp dword [eax + 0x64], edx
jg 0x42a5d1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [eax + 0x1c], 1
mov dword [ebp - 0x38], 0x1fe
jmp 0x42a580
Function at 0x42c5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
cmp dword [esi + 0x64], 3
mov dword [esi + 0x1b8], eax
mov dword [ebp - 0x1c], eax
mov dword [eax], 0x42c0a0
mov dword [eax + 0xc], 0x42c080
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
je 0x42c5fc
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], edi
jmp 0x42c626
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x18]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 4]
mov dword [edi + ebx], eax
add ebx, 4
cmp ebx, 0x80
jne 0x42c620
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x1c], 1
cmp byte [esi + 0x5a], 0
je 0x42c6b8
mov ebx, dword [esi + 0x54]
cmp ebx, 7
jle 0x42c703
cmp ebx, 0x100
jle 0x42c683
mov eax, dword [esi]
mov dword [eax + 0x14], 0x3b
mov dword [eax + 0x18], 0x100
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 3
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 8]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], ebx
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x42c6c9
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x42c6b0
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 4]
mov dword [esi + 0x4c], 2
mov dword [esp], esi
lea eax, [eax + eax*2]
lea eax, [eax + eax + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call dword [edx + 4]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0042bfc0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x3a
mov dword [eax + 0x18], 8
mov dword [esp], esi
call dword [eax]
jmp 0x42c683
Function at 0x434560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
mov esi, eax
mov dword [ebp - 0x3c], 0
xor eax, eax
push fcn.00434550
push ebp
push 0x40dd10
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4580c0]
test edx, edx
je 0x434598
mov eax, dword [0x4a2cf0]
call edx
jmp 0x43459d
mov eax, 0x4a2cf4
cmp dword [eax], 0
je 0x4345e4
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, esi
test esi, esi
jne 0x4345b3
mov eax, 0x457340
push eax
mov edx, dword [0x4580c0]
test edx, edx
je 0x4345c7
mov eax, dword [0x4a2cf0]
call edx
jmp 0x4345cc
mov eax, 0x4a2cf4
push dword [eax]
call fcn.0043c040
add esp, 0x10
test eax, 0xffffffff
sete bl
jmp 0x434669
lea eax, [ebp - 0x3c]
call fcn.00402aa0
push 0xfde9
mov ecx, esi
mov edx, dword [0x448dc0]
lea eax, [ebp - 0x3c]
call fcn.004060f0
mov eax, dword [ebp - 0x3c]
call fcn.0042fca0
mov esi, eax
mov edx, dword [0x4580c0]
test edx, edx
je 0x43461e
mov eax, dword [0x49c090]
call edx
jmp 0x434623
mov eax, 0x49c094
mov dword [eax], esi
mov edx, dword [0x4580c0]
test edx, edx
je 0x434638
mov eax, dword [0x49c090]
call edx
jmp 0x43463d
mov eax, 0x49c094
push dword [eax]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
mov edx, dword [0x4580c0]
test edx, edx
je 0x43465d
mov eax, dword [0x49c090]
call edx
jmp 0x434662
mov eax, 0x49c094
mov eax, dword [eax]
call fcn.00409b30
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00434550
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
mov edx, dword [0x4580c0]
test edx, edx
je 0x4346b3
mov eax, dword [0x4a2cf0]
call edx
jmp 0x4346b8
mov eax, 0x4a2cf4
cmp dword [eax], 0
je 0x4346d4
mov eax, edi
xor edx, edx
push edx
push eax
push esi
push dword [ebx]
call fcn.0043b480
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x4346e4
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
mov eax, ebx
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434750
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov ebx, eax
mov edx, dword [0x4580c0]
test edx, edx
je 0x43476e
mov eax, dword [0x4a2cf0]
call edx
jmp 0x434773
mov eax, 0x4a2cf4
cmp dword [eax], 0
je 0x4347bc
cmp ebx, dword [0x448dd0]
je 0x4347bc
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebx + 4]
mov edx, dword [0x4580c0]
test edx, edx
je 0x43479c
mov eax, dword [0x4a2cf0]
call edx
jmp 0x4347a1
mov eax, 0x4a2cf4
push dword [eax]
call fcn.0043c040
add esp, 0x10
test eax, 0xffffffff
jne 0x4347b7
mov esi, dword [ebp - 0x20]
jmp 0x4347c6
xor esi, esi
jmp 0x4347c6
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437850
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
mov esi, edx
mov ebp, ecx
cmp ecx, 1
mov eax, edx
sbb eax, 0xffffffff
mov dword [esp], eax
call fcn.00447850
mov edi, eax
test eax, eax
je 0x4378f0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp esi, eax
ja 0x4378c0
test ebp, ebp
je 0x4378ad
add esi, edi
mov byte [esi], 0
cmp edi, esi
jae 0x4378ad
mov eax, edi
nop
cmp byte [eax], 0
jne 0x4378a8
mov byte [eax], 0x20
inc eax
cmp eax, esi
jne 0x4378a0
mov eax, edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.00447858
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x437913
mov edx, dword [esp + 0x30]
mov dword [edx], 5
mov dword [edx + 4], eax
xor edi, edi
mov eax, edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x4378ad
mov edx, dword [esp + 0x30]
mov dword [edx], 0xe
mov dword [edx + 4], 0
mov eax, edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x4378ad
Function at 0x43be80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
cmp dword [ebx + 0x34], esi
jbe 0x43bf10
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.00439970
mov ecx, eax
test eax, eax
je 0x43c01c
test byte [esp + 0x4c], 8
je 0x43bf20
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x43bef0
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp esi, edx
jb 0x43bf80
ja 0x43bef0
cmp edi, dword [esp + 0x1c]
jb 0x43bf80
mov dword [ebx + 8], 0x12
mov dword [ebx + 0xc], 0
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
jb 0x43bef0
cmp dword [ebx + 0x30], edi
ja 0x43be9c
jmp 0x43bef0
lea edx, [edi*4]
lea eax, [edx*8]
sub eax, edx
add eax, dword [ebx + 0x40]
mov edx, dword [eax]
sub edx, 2
cmp edx, 1
ja 0x43bec5
mov dword [esp + 4], ebp
mov eax, dword [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call fcn.0043b8c0
test eax, eax
mov ecx, dword [esp + 0x18]
jns 0x43bfec
mov dword [ebx + 8], 0xf
mov dword [ebx + 0xc], 0
mov eax, 0xffffffff
jmp 0x43bf03
mov dword [esp], ebp
mov dword [esp + 0x18], ecx
call fcn.0043be20
mov edx, dword [ebx + 0x20]
lea eax, [edi + edi*2]
lea eax, [eax + eax*4]
mov ecx, dword [edx]
lea eax, [ecx + eax*4]
mov edx, dword [eax + 0xc]
mov dword [ebp + 0x2c], edx
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x1c], 0
mov edx, dword [eax + 8]
mov dword [ebp + 0x28], edx
mov edx, dword [eax + 0x10]
mov dword [ebp + 0x20], edx
mov dword [ebp + 0x24], 0
mov dx, word [eax + 6]
mov word [ebp + 0x30], dx
mov eax, dword [eax + 4]
and eax, 0xffff
test al, 1
mov ecx, dword [esp + 0x18]
jne 0x43c010
mov word [ebp + 0x32], 0
mov dword [ebp], 0xfc
mov dword [ebp + 4], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], ecx
or dword [ebp], 3
or dword [ebp + 4], 0
xor eax, eax
jmp 0x43bf03
test al, 0x40
je 0x43c030
mov word [ebp + 0x32], 0xffff
jmp 0x43bfde
mov eax, 0xffffffff
jmp 0x43bf03
mov word [ebp + 0x32], 1
jmp 0x43bfde
Function at 0x446750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00446740
push ebp
push 0x40dd10
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x4467c0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00407c70
cmp ebx, 1
jle 0x4467b0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00407900
jmp 0x4467cb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405ff0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00446740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x446960
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00446950
push ebp
push 0x40dd10
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x4a2f4c]
xor edx, edx
call fcn.00405ff0
mov dword [ebx*4 + 0x4a2f6c], 0xffffffff
cmp ebx, 7
jl 0x446988
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x446a14
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004069f0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00443190
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x446a14
push 4
push ebx
push esi
mov eax, 0x446830
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4468c0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00446950
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4a2fb0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4a2e10], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4a2e20], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4a2e30], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4a2e40], eax
mov edx, 0x4a2e51
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004027e0
lea eax, [ebp - 0x80]
call fcn.00403220
mov byte [0x4a2e50], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4a2fc0], eax
test eax, eax
je 0x4470f0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4a2fc0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4a2fb0], eax
nop
cmp dword [0x4a2e20], 6
jae 0x447104
mov dword [0x448fa0], 0
nop
cmp dword [0x4a2e20], 6
jb 0x447120
cmp dword [0x4a2e30], 1
jb 0x447120
mov dword [0x448fb0], 2
mov esp, ebp
pop ebp
ret