joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411581
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x429718]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4115c5
push 0xa
pop esi
cmp word [ebx], si
jne 0x4115c5
or byte [eax + edi + 0x28], 4
jmp 0x4115ca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x411735
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41170d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x411617
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x411641
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x411660
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41162e
push ebx
add eax, 4
pop edx
jmp 0x411636
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4115dc
jmp 0x411735
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411708
cmp dword [ebp - 0x14], 0
je 0x411708
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x429718]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4116e4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4116ac
mov word [esi], ax
jmp 0x411732
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x429718]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x429718]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x429718]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x411732
cmp word [ebp - 4], ax
jne 0x4116ee
cmp esi, ebx
je 0x4116a4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413619
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411735
push 0xd
pop eax
jmp 0x4116a4
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x429718]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41172f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x411735
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412f41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00406090
mov eax, dword [0x427040]
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.00410a24
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412f83
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4130fa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c2f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x429718]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004135fb
mov ecx, dword [esi*4 + 0x429718]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4130f3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4130f3
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4130f3
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004135fb
add esp, 0x14
cmp edx, esi
jl 0x4130f3
jg 0x41304e
cmp eax, esi
jb 0x4130f3
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4130f3
jl 0x413070
cmp dword [ebp - 0x1008], eax
ja 0x4130f3
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x413095
cmp ebx, esi
je 0x4130da
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4130da
mov al, byte [ecx]
cmp al, 0xd
jne 0x4130bb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4130c7
cmp byte [ecx + 1], 0xa
jne 0x4130c7
inc ecx
jmp 0x4130c7
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4130a1
cmp edx, ebx
jne 0x4130a1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4130f8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040519b
leave
ret
Function at 0x413379
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x413393
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4133aa
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x413402
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00416e2d
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x413402
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x413402
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x413402
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4133fc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4133fe
xor bl, bl
mov al, bl
jmp 0x413404
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x416510
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 0x4165ad
push ebx
push esi
call fcn.004164d9
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.0041529b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41655a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4165ac
push edi
push eax
call fcn.004103c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41657a
call fcn.0040f950
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4165ab
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041529b
add esp, 0x20
test eax, eax
jne 0x416599
push edi
call fcn.0040f950
jmp 0x4165a1
push ebx
call fcn.0040f950
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 0x418e26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00410f58
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 0x418e95
cmp esi, dword [ebp - 4]
je 0x418e90
cmp dword [ebp + 0xc], 0
je 0x418e90
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418e6d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041897b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x418e97
xor eax, eax
inc eax
jmp 0x418e97
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x418f02
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00410f58
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00410f58
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x418f79
cmp word [ecx], dx
je 0x418f79
mov eax, dword [0x4209bc]
push edi
dec eax
push eax
push 0x4208a8
call fcn.00418e9b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x418fec
cmp word [eax], dx
je 0x418fec
mov eax, dword [edi]
test eax, eax
je 0x418f9d
cmp word [eax], dx
je 0x418f9d
lea eax, [ebp - 0x10]
push eax
call fcn.00418881
jmp 0x418fa6
lea eax, [ebp - 0x10]
push eax
call fcn.0041891c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419016
mov eax, dword [0x4208a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x420598
call fcn.00418e9b
add esp, 0xc
test al, al
je 0x419016
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x418fe1
cmp word [eax], di
je 0x418fe1
lea eax, [ebp - 0x10]
push eax
call fcn.00418881
pop ecx
jmp 0x419018
lea eax, [ebp - 0x10]
push eax
call fcn.0041891c
jmp 0x418fde
mov eax, dword [edi]
test eax, eax
je 0x419003
cmp word [eax], dx
je 0x419003
lea eax, [ebp - 0x10]
push eax
call fcn.00418836
pop ecx
jmp 0x419016
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4190e1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00418d20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4190e1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4190e1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4190e1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41906e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040ff4e
test ebx, ebx
je 0x4190dc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040ff4e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4190e1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4190e1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041a83f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4190e3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040519b
leave
ret
Function at 0x41c290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c2bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c2bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406e90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
lea esi, [eax + eax*4]
mov eax, dword [0x46b244]
shl esi, 3
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
ja 0x406ebb
mov ecx, dword [esi + eax + 0x10]
test ecx, ecx
jbe 0x406f16
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x46a140
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406f16
mov eax, dword [0x46b244]
push 0
mov edx, dword [esi + eax + 0xc]
mov eax, dword [esi + eax + 8]
push edx
push eax
push ebx
call fcn.004068b0
mov ecx, dword [0x46b244]
mov edx, dword [esi + ecx + 0x10]
push edx
call fcn.0040fd70
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x406f1c
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [0x46b244]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, dword [esi + ecx + 0x10]
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x406f89
mov eax, dword [esp + 0x14]
push 0x465070
push eax
call fcn.0040fab3
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x406f6c
push edi
call fcn.0040f94a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x46b244]
push ebx
push 1
mov edx, dword [esi + ecx + 0x10]
push edx
push edi
call fcn.0041028f
push ebx
call fcn.0040f8cd
add esp, 0x14
push edi
call fcn.0040f94a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x406fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x828
push ebx
push ebp
mov ebp, dword [esp + 0x834]
push esi
push edi
mov edi, dword [esp + 0x844]
lea eax, [ebp + ebp*8]
mov dword [edi], 0
mov dword [edi + 4], 0
lea eax, [ebp + eax*8]
lea eax, [eax + eax*2]
lea esi, [eax + eax*4]
mov eax, dword [0x46b244]
shl esi, 3
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
ja 0x406fef
mov ecx, dword [esi + eax + 0x10]
test ecx, ecx
jbe 0x40715b
mov ebx, dword [esp + 0x840]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push ebx
call fcn.004100c2
add esp, 4
cmp word [ebx + eax*2 - 2], 0x5c
je 0x407021
push 0x465634
push ebx
call fcn.0040fa33
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push edx
mov edx, dword [0x46b244]
lea eax, [esp + 0x430]
push eax
lea ecx, [esp + 0x63c]
lea eax, [esi + edx + 0x1c]
push ecx
push eax
call fcn.004104a7
lea ecx, [esp + 0x234]
push ecx
push ebx
call fcn.0040fa33
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.0040fa33
mov eax, dword [0x46b244]
add esp, 0x24
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x1a
je 0x407105
cmp ecx, 0x22
je 0x407105
cmp ecx, 0x33
je 0x407105
cmp ecx, 0xa
je 0x407105
cmp ecx, 0x32
je 0x407105
cmp ecx, 0x59
je 0x407105
cmp ecx, 0x1f
je 0x407105
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 4], edx
mov ecx, dword [0x46b244]
mov edx, dword [edi]
mov eax, dword [esi + ecx + 0x10]
mov ecx, dword [esi + ecx + 0x14]
add eax, edx
mov edx, dword [edi + 4]
adc ecx, edx
mov dword [esp + 0x14], ecx
jne 0x4070dd
cmp eax, 0x7fffffff
jae 0x4070dd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
mov dword [edi], 0
mov dword [edi + 4], 0
push ebx
call fcn.00410115
push ebx
push ebp
call fcn.00406e90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret
mov eax, dword [0x469a44]
test eax, eax
je 0x407130
push 0x46b480
push ebx
call fcn.004103c8
add esp, 8
test eax, eax
jne 0x407130
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
mov eax, dword [0x469a40]
test eax, eax
je 0x4070ea
push 0x469f20
push ebx
call fcn.004103c8
add esp, 8
test eax, eax
jne 0x4070ea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x828
ret
Function at 0x407890
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x469a40]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4079c7
mov ecx, dword [0x469a40]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x469
push ecx
call esi
mov edx, dword [0x469a40]
push 0
push 0
push 0x467
push edx
mov edi, eax
call esi
sub edi, eax
mov eax, 0x66666667
imul edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
call edi
test ax, ax
jge 0x407900
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
push 0x10
call edi
test ax, ax
jge 0x40791c
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
cmp ebx, 1
jg 0x407926
mov ebx, 1
mov edx, dword [0x469a40]
push 0
push 0x65
push 0x808
push edx
call esi
mov eax, dword [0x469a40]
push 0
push 0
push 0x4ca
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x10]
cmp ax, 1
jne 0x407959
add edi, ebx
jmp 0x407960
test ax, ax
jne 0x407960
sub edi, ebx
mov ecx, dword [0x469a40]
push 0
push 0
push 0x469
push ecx
call esi
cmp edi, eax
jle 0x40798a
mov edx, dword [0x469a40]
push 0
push 0
push 0x469
push edx
call esi
mov edi, eax
test edi, edi
jge 0x4079a1
mov eax, dword [0x469a40]
push 0
push 0
push 0x467
push eax
call esi
mov edi, eax
mov ecx, dword [0x469a40]
push edi
push 0
push 0x807
push ecx
call esi
mov edx, dword [0x469a40]
push 0
push 0
push 0x806
push edx
call esi
pop edi
pop esi
pop ebx
ret

Function at 0x407aa0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x469a48]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407b0f
mov ecx, dword [0x469a48]
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x407af3
mov edx, dword [esp + 0x10]
mov eax, dword [0x469a48]
push edx
push eax
call fcn.00405cc0
mov ecx, dword [esp + 0x14]
add esp, 4
and eax, 0xffff
push eax
push 0x72d
push ecx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [0x469a48]
neg edx
sbb edx, edx
push 0
and edx, 0x65
push edx
push 0x72c
push eax
call esi
pop esi
ret
Function at 0x4176d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x468690
cmp edx, dword [eax]
je 0x4176fa
add eax, 8
inc ecx
cmp eax, 0x468720
jl 0x4176eb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x468690]
jne 0x417828
mov eax, dword [0x469a84]
cmp eax, 1
je 0x417802
test eax, eax
jne 0x41772b
cmp dword [0x465e00], 1
je 0x417802
cmp edx, 0xfc
je 0x417828
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x417762
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004170f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4177a5
lea eax, [ebp - 0x1a4]
push eax
call fcn.004170f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43fa34
push edi
call fcn.00419450
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416340
lea eax, [ebp - 0xa0]
push 0x43fa14
push eax
call fcn.00416340
push dword [esi + 0x468694]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416340
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041aa1e
add esp, 0x2c
pop edi
jmp 0x417828
lea eax, [ebp + 8]
lea esi, [esi + 0x468694]
push 0
push eax
push dword [esi]
call fcn.004170f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x41be80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x41beb0
push esi
call fcn.0041e560
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x41bea9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x41bf33
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x41bf1f
mov eax, dword [esi + 8]
test eax, eax
je 0x41bed4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x41bf1b
cmp eax, 2
je 0x41bf1f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41bec7
cmp eax, 3
je 0x41befa
cmp eax, 1
jne 0x41bec7
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 0x41bec7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x41bec7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0041bf60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x41bf53
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x13
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0041bf60
add esp, 4
pop esi
ret
Function at 0x41c1a0
Capabilities:
Check http status code

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x14]
cmp eax, 0xc8
je 0x41c1cf
cmp eax, 0xc9
je 0x41c1cf
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x13
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
push esi
call fcn.0041c210
mov ecx, eax
add esp, 4
dec ecx
je 0x41c209
dec ecx
jne 0x41c20e
mov al, byte [esp + 0xc]
test al, al
je 0x41c1f9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2c
mov edx, dword [esi]
call dword [edx]
add esp, 4
push esi
call fcn.0041c4a0
add esp, 4
mov eax, 2
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x429640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x238]
push eax
push 0x104
lea esi, [edi + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 8]
push ecx
call fcn.004100c2
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x429689
lea edx, [esp + 8]
push 0x465634
push edx
call fcn.0040fa33
add esp, 8
mov eax, dword [0x469efc]
inc eax
mov dword [0x469efc], eax
push eax
lea eax, [esp + 0xc]
push eax
push str._sIV__03d.TMP
push esi
call fcn.0040fac6
push esi
call fcn.0043e918
push 0x469788
push esi
call fcn.0040fab3
add esp, 0x1c
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4296ea
mov esi, dword [esp + 0x234]
push 0x50
push str.temp_filename
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x37
mov edx, dword [esi]
add edx, 0x18
push edx
call fcn.00419450
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 0x10
mov dword [edi], 0x429710
mov dword [edi + 4], 0x429780
mov dword [edi + 8], 0x4297f0
pop edi
pop esi
add esp, 0x228
ret

Function at 0x43e9c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e9e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004113a3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43ea0b
test byte [esp + 8], 2
je 0x43ea0b
call fcn.00411416
mov dword [eax], 0xd
call fcn.0041141f
mov dword [eax], 5
jmp 0x43e9e4
xor eax, eax
ret