joyce8/EMBER2024-capa huggingface dataset:
Function at 0x152e9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd4000]
push edi
or ebp, 0xffffffff
jmp 0x152ea02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x152ea09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x152e9f8
mov eax, 1
add ebx, ebx
jne 0x152ea1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x152ea2c
jne 0x152ea4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x152ea4b
dec eax
add ebx, ebx
jne 0x152ea38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x152ea10
add ebx, ebx
jne 0x152ea47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x152ea9d
xor ecx, ecx
sub eax, 3
jb 0x152ea63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x152ead2
sar eax, 1
mov ebp, eax
jmp 0x152ea6e
add ebx, ebx
jne 0x152ea6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x152ea3c
inc ecx
add ebx, ebx
jne 0x152ea7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x152ea3c
add ebx, ebx
jne 0x152ea89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x152ea7e
jne 0x152ea9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x152ea7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x152eabc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x152eaae
jmp 0x152e9fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x152eabc
add edi, ecx
jmp 0x152e9fe
pop esi
mov edi, esi
mov ecx, 0x4430e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x152eada
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x152eadf
lea edi, [esi + 0x1129000]
mov eax, dword [edi]
or eax, eax
je 0x152eb47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1145f2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11460a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x152eb05
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11460ac]
or eax, eax
je 0x152eb41
mov dword [ebx], eax
add ebx, 4
jmp 0x152eb22
call dword [esi + 0x11460bc]
mov ebp, dword [esi + 0x11460b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x152eb7b
sub esp, 0xffffff80
jmp 0xcce680

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a5fb
Capabilities:
Encode data using xor

Disassembly:
sub byte [ebx + ebx*8 - 0x38], cl
fistp dword [esi - 0x1f5b18d7]
imul esp, dword [ebp + 0x75cacd83], 0xe
invalid

Function at 0x411b98
Capabilities:
Encode data using xor

Disassembly:
scasb al, byte es:[edi]
out 0xc7, eax
sahf
xor byte [edx - 0x30], al
adc ch, byte [ebx - 0x7b]
pop eax
xor byte [eax], ah
jno 0x411c15
invalid
push ds
xor eax, dword [eax + 0x5be3ffa2]
insb byte es:[edi], dx
and byte [ebp + 0x77f8c096], ah
and byte [edx + 0x6c5be3ff], 0x20
movsd dword es:[edi], dword [esi]
xchg esi, eax
sar al, 0x77
loopne 0x411c4c
jb 0x411c8f
in eax, dx
pushfd
xchg ebp, eax
out 0x8c, eax
pop ds
xchg edx, eax
test edi, ebx
loop 0x411c13
mov byte fs:[0xa706fc9a], al
inc edx
push edx
add ch, dl
xchg edi, eax
add ebp, dword [ecx - 0x49]
sahf
and byte [0x487bfb9f], dh
add byte [esi - 0x67], al
mov byte [0x974f8e36], al
xchg edi, eax
sbb eax, dword [edi + esi*8]
adc edi, ecx
das
add al, 0xad
mov esp, 0xe0782f31
test dword [ecx + edi*2 + 0x3453846f], eax
sbb byte [esi], dl
jae 0x411cbb
shr byte [edi], cl
ret
inc ebx
pop ebx
stc
out 0x24, al
sub eax, 0x719700f7
outsd dx, dword [esi]
inc edi
fst dword [eax + 0x192e197c]
push edi
jne 0x411cb6
das
jno 0x411d14
pop ss
xchg dword [esi + 0x1c91caef], edi
aad 0x62
adc al, 0x6b
cmp bl, dh
inc esi
push cs
push cs
movsb byte es:[edi], byte [esi]
rcl byte [ecx]
test al, 0xbc
sub esi, eax
or byte [edi - 0x1f], al
cmp al, 0x41
mov esp, 0x8c62965
inc edi
loope 0x411cff
inc ecx
push 0xffffffffffffffb7
test bl, 0x56
int3
mov bh, 0xf6
retf
out 0xd3, eax
loop 0x411cc5
inc esi
ret 0x4c22
xchg edi, eax
insb byte es:[edi], dx
aaa
mov dword [0xbff1e268], eax
inc eax
mov cl, 0x8d
mov esi, 0xa8b38676
sar byte [eax], 1
aas
and eax, dword gs:[edx]
cli
push 0xdef0f0f7
enter 0x5b45, 0x4a
outsd dx, dword [esi]
invalid

Function at 0x44e26b
Capabilities:
Encode data using xor

Disassembly:
fnsave dword [0xe4bbd8db]
insb byte es:[edi], dx
frstor dword es:[ebp + 0x15705784]
rol byte [esi + 0x4c], 1
jmp 0x44e2f2
fcmovnu st(0), st(0)
mov ebx, 0xdd266ce4
movsd dword es:[edi], dword [esi]
test byte [edi + 0x70], dl
adc eax, 0xeb4c46d0
jbe 0x44e269
and eax, 0xbc97e9e5
aad 0x9d
add ch, ah
mov eax, 0x2d883f5a
or al, 0x26
mov eax, 0x65d53737
push es
fistp word [eax + 0x767b11b1]
test byte [ebx + 0x72], 0x5c
push ebx
std
mov cl, ah
pop ebp
dec ebp
invalid
adc eax, 0x25ec25af
cmp eax, 0x90258795
sbb dword [esp + 0x2b3ec4ec], ebx
mov esp, dword [esi + 0x6c]
inc sp
ror dword [0x18150869], cl
dec ebx
inc ecx
adc eax, 0x9b1fc64
out 0x94, al
cmp eax, 0xe9586554
mov eax, 0x86bfb4ac
wait
lcall 0xf52d, 0x47261baf
mov esp, 0xa7ab0c88
hlt
Function at 0x46685b
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword ss:[esi]
rcl esp, 0xa0
xor dword [eax - 0x14], edx
les ebx, [esi + edx - 0x3d75b3a5]
dec esp
mov al, dl
push 0x39c65e87
adc al, 0x93
popal
push 0x477482aa
imul eax, esp, 0x9eca7467
add ebp, dword [esi - 0x55]
test al, 0x92
jle 0x466867
dec esp
inc eax
or eax, edi
je 0x4668ac
leave
stosd dword es:[edi], eax
imul esp, dword cs:[ecx], 0x78
jmp 0x648a0602
pushal
inc ecx
and al, 0xe0
mov dl, 0x4c
or eax, 0xec64f3af
xor al, byte [esi + 0x4c27a2fa]
test al, 0x1c
ror byte [ecx + eax - 0x5f24730a], 0xa8
or bl, byte [edx]
add eax, 0x2c2200ec
stosb byte es:[edi], al
dec esi
in eax, 0xf
push ebp
sbb dh, dl
mov ecx, 0x62b0ab80
mov byte [edi], 0xe2
sbb eax, 0xc61338c9
and eax, 0x46e41174
jp 0x46690e
pop es
loop 0x4668fb
leave
cmp byte [ebx], dl
invalid
stosd dword es:[edi], eax
bound edi, qword [esi - 1]
xchg byte [ebx - 0x68], cl
push ebx
rol dword [edi], cl
xor al, 0x63
fisttp qword [eax]
and dh, byte [esi]
dec edi
dec ebx
or eax, 0xd8270fec
and byte [edx + 0x71], dl
pop ebx
enter 0xffffffffffffc6a3, 0xffffffffffffffb9
cmp eax, 0xe9392e3f
xor bh, byte [esi]
or byte [edx], ah
or byte ds:[edx], ah
cmc
inc edx
cmp edi, edx
jbe 0x4668db
mov byte [eax], bh
cdq
ret 0x59d2

Function at 0x47c93b
Capabilities:
Encode data using xor

Disassembly:
push edx
sbb eax, 0x1d0ea21d
sbb dword [ebp + 3], ebp
mov bl, 0xc
loop 0x47c994
mov word [esi], fs
lea esp, [edx + 0x21865d85]
cdq
push ebx
std
in al, dx
lodsd eax, dword [esi]
inc ebx
cwde
invalid
pop es
pop edx
push eax
sub byte [ecx - 0x60dd814e], bl
invalid

Function at 0x494a5b
Capabilities:
Encode data using xor

Disassembly:
or al, 0xa2
out dx, ax
push ss
mov ah, 0xec
pop edi
mov eax, dword [0x9d0dbb3a]
and bh, bl
sti
adc eax, dword [ebp + 0x123c1a32]
adc bl, ah
popal
or al, 0xf3
lodsb al, byte [esi]
pop ecx
mov dl, 0x7c
adc dword [edx + 0x42cc4b7c], edi
mov cl, 0x3b
ja 0x494aac
pop esi
mov al, byte [0x32572dd]
cmp cl, byte [edx + eax*2 - 6]
sahf
and byte [ebp + 0x6e9a2a45], cl
loop 0x494aa1
sub ah, byte [edi]
imul ebx, eax, 0xffffff90
imul esi, dword [edx + 0x6c0a62dd], 0xffffffeb
invalid
jmp 0x494a69
sub cl, byte [ecx]
xchg dword [ecx - 0x6d2e33f0], eax
div dword [edx + 0x63cb1cb]
lodsb al, byte [esi]
pop edi
xchg edi, eax
not edx
stosd dword es:[edi], eax
or eax, 0x22620fe5
adc eax, edi
xor dl, bl
adc ch, byte [esi - 0x61ccd0d2]
mov ss, word [edx - 2]
cli
movsb byte es:[edi], byte [esi]
pop es
mov byte [0xc19638dd], al
jbe 0x494ac0
and dl, byte [ebx]
invalid
insd dword es:[edi], dx
pop ebx
or dword [eax + 0x667f47bb], edi
lds esp, [eax]
or al, 0xea
pop esp
pop ebp
fsubr qword [0xc23adc0c]
jl 0x494ac5
insb byte es:[edi], dx
cmp al, 0xe
lodsb al, byte [esi]
pop eax
test dword [eax + ecx*2 + 0x2c161ce], ebx
dec eax
into
popal
rol dword [edx], 0x81
inc eax
push 0x5e800ed6
Function at 0x4ba270
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push ebx
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1a8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1ac], eax
lea ecx, [ebp - 0x19c]
push ecx
push 0x2000000
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ba314
push 4
lea eax, [ebp - 0x1a8]
push eax
push 0x18
mov ecx, dword [ebp - 0x19c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ba307
mov edx, dword [ebp - 0x19c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1ac], 0
je 0x4ba305
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4ba314
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5f5892

Function at 0x4bb2f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3310
cmp edx, dword [eax]
je 0x4bb318
add eax, 8
inc ecx
cmp eax, 0x4c33a0
jl 0x4bb309
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3310]
jne 0x4bb446
mov eax, dword [0x4c79b4]
cmp eax, 1
je 0x4bb420
test eax, eax
jne 0x4bb349
cmp dword [0x4c3250], 1
je 0x4bb420
cmp edx, 0xfc
je 0x4bb446
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb380
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbc40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb3c3
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbc40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb00
push edi
call fcn.004bd410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba20
lea eax, [ebp - 0xa0]
push 0x4bfae0
push eax
call fcn.004bba20
push dword [esi + 0x4c3314]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd384
add esp, 0x2c
pop edi
jmp 0x4bb446
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3314]
push 0
push eax
push dword [esi]
call fcn.004bbc40
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 0x402a1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4170a0]
jne 0x402a25
repz ret
jmp fcn.004041aa

Function at 0x40aebc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406709
and dword [ebp - 4], 0
cmp dword [0x4189d0], 0
mov ebx, eax
jne 0x40af6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b01e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b01e
push eax
call fcn.00406697
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4189d0], eax
call esi
push eax
call fcn.00406697
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4189d4], eax
call esi
push eax
call fcn.00406697
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4189d8], eax
call esi
push eax
call fcn.00406697
pop ecx
mov dword [0x4189e0], eax
test eax, eax
je 0x40af6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406697
pop ecx
mov dword [0x4189dc], eax
mov eax, dword [0x4189dc]
cmp eax, ebx
je 0x40afc5
cmp dword [0x4189e0], ebx
je 0x40afc5
push eax
call fcn.00406712
push dword [0x4189e0]
mov esi, eax
call fcn.00406712
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40afc5
test edi, edi
je 0x40afc5
call esi
test eax, eax
je 0x40afbc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40afbc
test byte [ebp - 0xc], 1
jne 0x40afc5
or dword [ebp + 0x10], 0x200000
jmp 0x40affe
mov eax, dword [0x4189d4]
cmp eax, ebx
je 0x40affe
push eax
call fcn.00406712
pop ecx
test eax, eax
je 0x40affe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40affe
mov eax, dword [0x4189d8]
cmp eax, ebx
je 0x40affe
push eax
call fcn.00406712
pop ecx
test eax, eax
je 0x40affe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4189d0]
call fcn.00406712
pop ecx
test eax, eax
je 0x40b01e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b020
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d600
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x40d623
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0
je 0x40d632
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40d652
jmp 0x40d763
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
jne 0x40d686
cmp dword [ebp - 4], 0x50
je 0x40d670
cmp dword [ebp - 4], 0xb7
jne 0x40d686
mov dword [ebp - 0xc], 1
jmp 0x40d763
cmp dword [ebp - 4], 3
jne 0x40d754
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
jmp 0x40d6a8
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
test edx, edx
je 0x40d6c5
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x40d6c3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x40d69f
cmp dword [ebp - 0x10], 0
je 0x40d743
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00411560
mov dword [ebp - 0xc], eax
mov eax, 0x5c
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
cmp dword [ebp - 0xc], 0
jge 0x40d6f6
jmp 0x40d763
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d741
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x40d741
mov eax, dword [ebp - 0xc]
push eax
push 0x26d
push 0x413dd8
call fcn.0040d330
jmp 0x40d763
jmp 0x40d752
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x40d763
mov edx, dword [ebp - 4]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4170a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x224], 0x80004005
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0xffffffff
mov dword [ebp - 8], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40d8d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40d8d1
mov eax, dword [ebp - 0x224]
push eax
push 0x2cc
push 0x413df4
call fcn.0040d330
jmp 0x40d9d3
mov dword [ebp - 8], 0
jmp 0x40d8e3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x3e8
jge 0x40d9ad
cmp dword [ebp - 0x220], 0xffffffff
jne 0x40d9ad
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
push str._s_s_05d._s
lea eax, [ebp - 4]
push eax
call fcn.0040e360
add esp, 0x18
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40d93a
jmp 0x40d9d3
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
jne 0x40d9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x224], eax
push 0x50
call fcn.00401df0
add esp, 4
cmp eax, dword [ebp - 0x224]
jne 0x40d99b
mov dword [ebp - 0x224], 0
jmp 0x40d8da
cmp dword [ebp - 0x224], 0
jge 0x40d9a8
jmp 0x40d9d3
jmp 0x40d8da
cmp dword [ebp + 0x14], 0
je 0x40d9be
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x220]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x40d9d3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x224], 0
jl 0x40d9e2
cmp dword [ebp + 0x14], 0
jne 0x40da02
cmp dword [ebp - 0x220], 0xffffffff
je 0x40da02
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0xffffffff
cmp dword [ebp - 4], 0
je 0x40da11
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e1c0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00402a1b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40da50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0xa
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40dacf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40dab2
mov dword [ebp - 8], 0x80004005
mov eax, dword [ebp - 8]
push eax
push 0xb3
push 0x413f74
call fcn.0040d330
jmp 0x40dbd6
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40db28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401df0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40db0b
mov dword [ebp - 8], 0x80004005
mov ecx, dword [ebp - 8]
push ecx
push 0xb6
push 0x413f84
call fcn.0040d330
jmp 0x40dbd6
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40db7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401df0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40db64
mov dword [ebp - 8], 0x80004005
mov edx, dword [ebp - 8]
push edx
push 0xbb
push 0x413f94
call fcn.0040d330
jmp 0x40dbd6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x40dbce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401df0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40dbb7
mov dword [ebp - 8], 0x80004005
mov ecx, dword [ebp - 8]
push ecx
push 0xbf
push 0x413fa4
call fcn.0040d330
jmp 0x40dbd6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dca0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.0040da50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40dcf6
jmp 0x40ddb4
push 0
push 0x80
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40dd59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x40dd42
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp - 0x14]
push eax
push 0xde
push 0x413fb4
call fcn.0040d330
jmp 0x40ddb4
mov dword [ebp - 8], 1
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ddb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x40dda1
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp - 0x14]
push eax
push 0xe4
push str.._resrutil.cpp
call fcn.0040d330
cmp dword [ebp - 0xc], 0xffffffff
je 0x40ddc4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jge 0x40ddda
cmp dword [ebp - 8], 0
je 0x40ddda
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e620
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x40e644
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 0
je 0x40e65d
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, dword [ebp + 0xc]
sete dl
mov dword [ebp - 4], edx
jmp 0x40e6f5
movzx eax, word [ebp + 8]
and eax, 0x3ff
cmp eax, 4
jne 0x40e6d7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xc04
ja 0x40e697
cmp dword [ebp - 0xc], 0xc04
je 0x40e6bc
cmp dword [ebp - 0xc], 0x404
je 0x40e6b8
cmp dword [ebp - 0xc], 0x804
je 0x40e6ab
jmp 0x40e6c7
cmp dword [ebp - 0xc], 0x1004
je 0x40e6af
cmp dword [ebp - 0xc], 0x1404
je 0x40e6c0
jmp 0x40e6c7
xor edx, edx
jne 0x40e6ab
mov dword [ebp + 8], 0x804
jmp 0x40e6c7
xor eax, eax
jne 0x40e6b8
xor ecx, ecx
jne 0x40e6bc
mov dword [ebp + 8], 0x404
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, dword [ebp + 0xc]
sete al
mov dword [ebp - 4], eax
jmp 0x40e6f5
movzx ecx, word [ebp + 8]
and ecx, 0x3ff
movzx edx, word [ebp + 0xc]
and edx, 0x3ff
xor eax, eax
cmp ecx, edx
sete al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret