joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a49b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4330d8]
je 0x41a4b6
inc edi
cmp edi, 0x17
jb 0x41a4a7
cmp edi, 0x17
jae 0x41a636
push ebp
push 3
call fcn.0041c7a0
cmp eax, 1
pop ecx
je 0x41a602
push 3
call fcn.0041c7a0
test eax, eax
pop ecx
jne 0x41a4ea
cmp dword [0x432f10], 1
je 0x41a602
cmp ebx, 0xfc
je 0x41a635
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x434220
push ebp
call fcn.0041a325
add esp, 0xc
test eax, eax
je 0x41a520
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push 0x104
mov esi, 0x434239
push esi
push 0
mov byte [0x43433d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41a564
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041a325
add esp, 0xc
test eax, eax
je 0x41a564
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004171c0
add esp, 0x14
push esi
call fcn.00418680
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a5a9
push esi
call fcn.00418680
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x434534
push 0x427acc
sub ecx, eax
push ecx
push eax
call fcn.0041c6ed
add esp, 0x14
test eax, eax
je 0x41a5a9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
jmp 0x41a5ab
xor esi, esi
push 0x427ac8
push ebx
push ebp
call fcn.0041c67c
add esp, 0xc
test eax, eax
je 0x41a5cb
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push dword [edi*8 + 0x4330dc]
push ebx
push ebp
call fcn.0041c67c
add esp, 0xc
test eax, eax
je 0x41a5ed
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041c4bf
add esp, 0xc
jmp 0x41a635
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41a635
cmp ebp, 0xffffffff
je 0x41a635
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4330dc]
push dword [esi]
call fcn.00418680
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x405f13
Capabilities:
Parse pe header

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

Function at 0x40744c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40746d
jl 0x407464
test edi, edi
jne 0x40746d
xor eax, eax
xor edx, edx
jmp 0x40752e
cmp dword [ebx + 0x38], 0
je 0x407482
push eax
push edi
push dword [ebp + 8]
call fcn.00407534
jmp 0x40752e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4074c9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4074c9
cmp eax, edi
jb 0x4074a3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004087e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4074cf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407523
mov ecx, ebx
call fcn.00406ca6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40750e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040f5c0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407523
jmp 0x4074e1
test edx, edx
je 0x407523
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040f5c0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x41319f
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 0x41323c
push ebx
push esi
call fcn.00413168
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.004130fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4131e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41323b
push edi
push eax
call fcn.0041449c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413209
call fcn.00411ebb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41323a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004130fc
add esp, 0x20
test eax, eax
jne 0x413228
push edi
call fcn.00411ebb
jmp 0x413230
push ebx
call fcn.00411ebb
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 0x413a70
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422990
push 0x422988
push str.FlsAlloc
push 0x1f
call fcn.004138db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413aa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x413aaa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413aee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4229a0
push 0x422998
push str.FlsGetValue
push 0x21
call fcn.004138db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413b25
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x413b2d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4229a8
push 0x4229a0
push str.FlsSetValue
push 0x22
call fcn.004138db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413b67
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x416987
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00411bd0
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 0x4169f6
cmp esi, dword [ebp - 4]
je 0x4169f1
cmp dword [ebp + 0xc], 0
je 0x4169f1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4169ce
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004164d9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4169f8
xor eax, eax
inc eax
jmp 0x4169f8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x416a5d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x429280]
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.00411bd0
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.00411bd0
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 0x416ad4
cmp word [ecx], dx
je 0x416ad4
mov eax, dword [0x422dcc]
push edi
dec eax
push eax
push 0x422cb8
call fcn.004169fc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x416b47
cmp word [eax], dx
je 0x416b47
mov eax, dword [edi]
test eax, eax
je 0x416af8
cmp word [eax], dx
je 0x416af8
lea eax, [ebp - 0x10]
push eax
call fcn.004163df
jmp 0x416b01
lea eax, [ebp - 0x10]
push eax
call fcn.0041647a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x416b71
mov eax, dword [0x422cb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4229a8
call fcn.004169fc
add esp, 0xc
test al, al
je 0x416b71
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x416b3c
cmp word [eax], di
je 0x416b3c
lea eax, [ebp - 0x10]
push eax
call fcn.004163df
pop ecx
jmp 0x416b73
lea eax, [ebp - 0x10]
push eax
call fcn.0041647a
jmp 0x416b39
mov eax, dword [edi]
test eax, eax
je 0x416b5e
cmp word [eax], dx
je 0x416b5e
lea eax, [ebp - 0x10]
push eax
call fcn.00416394
pop ecx
jmp 0x416b71
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 0x416c3c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00416881
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x416c3c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x416c3c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x416c3c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x416bc9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00413c6d
test ebx, ebx
je 0x416c37
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00413c6d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416c3c
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 0x416c3c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041bbaf
add esp, 0x10
xor eax, eax
inc eax
jmp 0x416c3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061c1
leave
ret
Function at 0x418537
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041df50
mov eax, dword [0x429280]
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.0041717e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418579
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4186d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041df80
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 + 0x42a9f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419534
mov ecx, dword [esi*4 + 0x42a9f8]
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 0x4186ce
cmp eax, dword [ecx + edi + 0x24]
jne 0x4186ce
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 0x4186ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419534
add esp, 0x14
test edx, edx
jl 0x4186ce
jg 0x418644
test eax, eax
jb 0x4186ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4186ce
jl 0x41865e
cmp dword [ebp - 0x1008], eax
ja 0x4186ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41867c
test ebx, ebx
je 0x4186b5
cmp ecx, edi
jae 0x4186b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x418696
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4186a2
cmp byte [ecx + 1], 0xa
jne 0x4186a2
inc ecx
jmp 0x4186a2
movzx eax, al
movsx eax, byte [eax + 0x429a50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41867c
cmp edx, ebx
jne 0x41867c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4186d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004061c1
leave
ret
Function at 0x4189cc
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 + 0x42a9f8]
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 0x418a0c
cmp byte [ebx], 0xa
jne 0x418a0c
or byte [edi + eax + 0x28], 4
jmp 0x418a11
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 0x418b10
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418af3
inc eax
cmp dl, 0xd
je 0x418a3d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418a63
cmp eax, ecx
jae 0x418a71
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 0x418a25
jmp 0x418b10
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 0x418aee
cmp dword [ebp - 0x10], 0
je 0x418aee
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42a9f8]
test byte [eax + edi + 0x28], 0x48
je 0x418ac8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418ab3
mov byte [esi], dl
jmp 0x418ac4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42a9f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418b10
cmp byte [ebp - 1], 0xa
jne 0x418ad7
cmp esi, ebx
jne 0x418ad7
mov byte [esi], 0xa
jmp 0x418b0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419552
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418b10
mov byte [esi], 0xd
jmp 0x418b0f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42a9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418b0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418b10
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418b19
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 + 0x42a9f8]
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 0x418b5f
cmp word [ebx], dx
jne 0x418b5f
or byte [eax + edi + 0x28], 4
jmp 0x418b64
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 0x418cc7
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 0x418ca7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418ba5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418bdb
cmp eax, edx
jae 0x418be9
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 0x418b80
jmp 0x418cc7
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 0x418ca2
cmp dword [ebp - 0x18], 0
je 0x418ca2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42a9f8]
test byte [eax + edi + 0x28], 0x48
je 0x418c78
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 0x418c3c
mov word [esi], cx
jmp 0x418c73
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42a9f8]
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 + 0x42a9f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42a9f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418cc7
pop eax
cmp word [ebp - 4], ax
jne 0x418c88
cmp esi, ebx
jne 0x418c88
mov word [esi], ax
jmp 0x418cc4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419552
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418cc7
push 0xd
pop eax
jmp 0x418c83
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42a9f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418cc1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418cc7
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 0x41df10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41df3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41df3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100027eb
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0x74
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xa4], 6
jae 0x100029c2
cmp dword [0x100d2db0], 0
jne 0x100029bb
push ebx
push ebp
push edi
call fcn.10002ff5
mov ebx, eax
test ebx, ebx
jne 0x1000282e
push eax
push eax
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x5c
pop edx
push 0x4b
pop eax
push 0x65
pop ecx
push 0x72
mov word [esp + 0x36], ax
pop eax
push 0x6e
mov word [esp + 0x3a], ax
pop eax
push 0x6c
mov word [esp + 0x3c], ax
pop eax
push 0x4f
pop edi
push 0x62
mov word [esp + 0x40], ax
pop eax
push 0x6a
mov word [esp + 0x44], ax
pop eax
push 0x63
mov word [esp + 0x46], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3e], cx
mov word [esp + 0x48], cx
pop ecx
push 0x74
pop ebp
push 0x73
pop eax
push 0x43
mov word [esp + 0x4e], ax
pop eax
push 0x72
mov word [esp + 0x52], ax
mov word [esp + 0x34], dx
mov word [esp + 0x50], dx
pop edx
push 0x69
pop eax
push 0x53
mov word [esp + 0x56], ax
pop eax
push 0x65
mov word [esp + 0x5a], ax
pop eax
push 0x75
mov word [esp + 0x5c], ax
pop eax
push 0x66
mov word [esp + 0x62], ax
pop eax
push 0x4d
mov word [esp + 0x68], ax
pop eax
push 0x65
mov word [esp + 0x4a], cx
mov word [esp + 0x5e], cx
pop ecx
push 0x6d
mov word [esp + 0x6a], ax
pop eax
push 0x6f
mov word [esp + 0x6e], ax
pop eax
push 0x79
mov word [esp + 0x70], ax
pop eax
mov word [esp + 0x3e], di
mov word [esp + 0x48], bp
mov word [esp + 0x50], dx
mov word [esp + 0x54], bp
mov word [esp + 0x5c], di
mov word [esp + 0x60], bp
mov word [esp + 0x62], di
mov word [esp + 0x68], cx
mov word [esp + 0x6e], dx
mov word [esp + 0x70], ax
push 0x45
pop eax
mov word [esp + 0x72], ax
lea edi, [esp + 0x24]
push 0x76
pop eax
mov word [esp + 0x74], ax
push 0x6e
pop eax
mov word [esp + 0x78], ax
xor eax, eax
mov word [esp + 0x7c], ax
push 0x4c
pop eax
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [esp + 0x7a], bp
xor ebp, ebp
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], ebp
stosd dword es:[edi], eax
mov word [esp + 0x76], cx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jns 0x1000299c
push ebp
push ebp
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0xc]
mov edx, 0x100d2db0
xor eax, eax
lock cmpxchg dword [edx], ecx
pop edi
pop ebp
pop ebx
test eax, eax
je 0x100029bb
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100d2db0]
jmp 0x100029c4
xor eax, eax
add esp, 0x74
ret
Function at 0x10003f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100cef80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call sub.msvcrt.dll_memset
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10099b40
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x10003ffb
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003ff1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004053
push ecx
push edx
call fcn.1009832f
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10005d40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.1009cb90
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x100d2df0
push 0x1f8
push eax
push dword [0x100ce080]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009833d
mov esp, ebp
pop ebp
ret
call fcn.10099820
int3
Function at 0x10004060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100cef80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x100d2dd0]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100040cb
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100040a5
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.100033c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009833d
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1000411c
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100040f6
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.100033c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009833d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.100033c0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.1009833d
mov esp, ebp
pop ebp
ret