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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x41df6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41df71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41df60
mov eax, 1
add ebx, ebx
jne 0x41df83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41df78
jne 0x41df94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41df78
xor ecx, ecx
sub eax, 3
jb 0x41dfa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e01a
mov ebp, eax
add ebx, ebx
jne 0x41dfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dfe4
inc ecx
add ebx, ebx
jne 0x41dfd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dfc5
jne 0x41dfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dfc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dff5
jmp 0x41df66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e004
add edi, ecx
jmp 0x41df66
pop esi
mov edi, esi
mov ecx, 0x1e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e022
cmp byte [edi], 1
jne 0x41e022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x41e027
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41e09f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20478]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20504]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e054
mov ecx, edi
jns 0x41e083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20508]
or eax, eax
je 0x41e099
mov dword [ebx], eax
add ebx, 4
jmp 0x41e071
call dword [esi + 0x20518]
mov ebp, dword [esi + 0x2050c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x41e0d3
sub esp, 0xffffff80
jmp 0x403892
Function at 0x44f336
Capabilities:
Encode data using xor

Disassembly:
jmp 0x464de3
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x464ed7
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x515508
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.0044e210
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x451e88
push str.Bicycle_water
mov bh, byte [edx + section..LN3]
push 0x5155f0
xor bh, bl
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
mov bl, byte [esi + edi]
push 0x451e88
push str.dijovhyuGSYYSyus
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
add byte [esi + edi], bh
push 0x451e88
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.0044e210
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.0044e210
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.0044e210
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x464dfc
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x451357
Capabilities:
Parse pe header

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

Function at 0x451672
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x4644b3
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x53ed88], eax
pop edi
pop esi
ret
Function at 0x40a098
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0040354c
mov eax, dword [ebp - 0x18]
call fcn.0040354c
mov eax, dword [ebp - 0x1c]
call fcn.0040354c
xor eax, eax
push ebp
push 0x40a19c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0040355c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040355c
mov edx, eax
mov eax, dword [0x40c650]
pop ecx
call fcn.0040a020
pop ecx
test al, al
je 0x40a181
mov eax, dword [ebp - 0x1c]
call fcn.0040496c
test al, al
je 0x40a112
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x40a166
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a170
mov eax, dword [ebp - 0x10]
call fcn.00404564
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1a3
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret

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 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403e59
pop dword [ebp - 0x28]
mov eax, 0xb4283118
add eax, 0x4c180d41
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xe18aebb0
sub dword [ebp - 0x38], 0x9338a665
mov dword [ebp - 0x34], 0x9d1767d9
sub dword [ebp - 0x34], 0x6ae41b94
mov dword [ebp - 0x30], 0x3a008afb
add dword [ebp - 0x30], 0x124bb933
mov dword [ebp - 0x2c], 0x27ffbc41
sub dword [ebp - 0x2c], 0x27ffbc41
lea eax, [ebp - 0x38]
push eax
mov eax, 0x70745c51
sub eax, 0x7033ebed
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x4bc3c7b0
sub dword [ebp - 0x38], 0xd7515e5a
mov dword [ebp - 0x34], 0xf5b3d201
sub dword [ebp - 0x34], 0xb447708c
mov dword [ebp - 0x30], 0x9382bcdf
add dword [ebp - 0x30], 0xcfecaf8d
mov dword [ebp - 0x2c], 0x6aaa0277
add dword [ebp - 0x2c], 0x9555fd89
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x181ca232
add eax, 0xe823ce76
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x37e71
push 0
call eax
mov ecx, 0x1179a5f7
sub ecx, 0x11795958
mov ebx, eax
mov edx, 0xbc975540
sub edx, 0xbc565540
add edx, dword [ebp - 0x28]
mov edi, 0x6cc35365
add dword [ebp - 0xc], 0xc8c3d443
mov esi, dword [edx]
xor dword [ebp - 0x20], 0xf38f5c77
xor esi, edi
add dword [ebp - 4], 0x41312121
mov dword [ebx], esi
add dword [ebp - 4], edx
add ebx, 4
add edx, 0xa61e3afa
add edx, 0x59e1c50a
loop 0x403f75
add eax, 0x1254f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x339393e1
sub ecx, 0x335393e1
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x209d349d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x21fa6b7a
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Mig1
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030c0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401325
push 1
push dword [0x4030c0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Gendalf
push str.Mig1
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4030c8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401325
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401308
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4195c0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x4195e8
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4195f7
mov eax, 1
ret 4

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
invalid
Function at 0x4209ab
Capabilities:
Parse pe header

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

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419b00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x405060
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp byte [0x406460], 0
mov esi, eax
jne 0x401248
push edi
call fcn.00401180
add esp, 4
test esi, esi
jne 0x401265
push 0x405070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40128a
push 0x405094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x406564], eax
mov dword [0x40668c], eax
test eax, eax
jne 0x4012b8
push 0x4050b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0xc]
mov dword [0x406684], ecx
lea ecx, [eax + 0x10]
mov dword [0x406564], ecx
cmp dword [eax], 0x78563412
je 0x4012e6
push 0x4050d4
push 0
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4012f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012f0
sub eax, esi
lea edx, [ecx + eax + 1]
mov dword [0x406564], edx
cmp byte [ecx], 0
je 0x40132e
push ecx
push 0x406460
push 0x4050f4
push 0x304
push 0x405e20
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x405e20
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret

Function at 0x401350
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401377
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4013af
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebp, eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4013ce
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x406460], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401400
push esi
call fcn.00401180
add esp, 4
push 0x4050fc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40510c
call fcn.00401d60
add esp, 8
test eax, eax
jne 0x401500
push 0x40511c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x405e20
call fcn.00401350
mov esi, eax
add esp, 4
test esi, esi
je 0x4014a4
push edi
push 0xb
push 0x405138
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401498
lea ecx, [esi + 0xf]
push ecx
push 0x405144
call fcn.00401d60
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401500
push 0x405154
push 0x406460
push 0x405164
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401d60
add esp, 0x1c
test eax, eax
jne 0x401500
push 0x40516c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret

Function at 0x401540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push 0x4051a4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4015ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401654
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40518c
call fcn.00402520
add esp, 8
test eax, eax
je 0x401654
push 0x405198
push eax
call fcn.00402230
add esp, 8
test eax, eax
je 0x401654
pop esi
add esp, 0x304
jmp eax
push 0x4051b0
push 0x406460
push 0x4051bc
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4015f7
push 0x4051c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015f7
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405e20
call fcn.00401350
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401653
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push 0x4051d0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40162e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push 0x4051dc
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40164c
add edi, 0xe
push edi
call fcn.00401510
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4018e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x40668c]
cmp dword [eax + 8], 0
push esi
je 0x401944
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401973
push 0x405248
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x40582c]
add esp, 8
mov dword [ecx], eax
jmp 0x40197f
mov edx, dword [0x40582c]
mov dword [edx], 0
mov eax, dword [0x405844]
mov dword [eax], 1
mov ecx, dword [0x405834]
mov dword [ecx], 1
mov edx, dword [0x40668c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40583c]
push 0x406140
mov dword [ecx], eax
call dword [0x4056d4]
add esp, 4
call fcn.00401660
call dword [0x405744]
test eax, eax
jne 0x4019d5
call fcn.004016f0
test eax, eax
jne 0x401a3b
call dword [0x4056ac]
jmp 0x4019de
call fcn.004017d0
test eax, eax
jne 0x401a3b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401a0b
push 1
call dword [0x405824]
push eax
push 0x405258
call dword [0x4057c4]
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x4057d4]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a30
push esi
push 0x405260
call dword [0x4057c4]
push esi
call fcn.00401c40
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401b90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057ec]
push 1
call dword [0x405854]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bf0
call dword [0x4056c4]
push eax
call dword [0x4057d4]
add esp, 4
test eax, eax
je 0x401be7
push eax
push 0
push esi
call dword [0x40585c]
add esp, 0xc
test eax, eax
jne 0x401be7
push esi
push 0x405288
call dword [0x4057c4]
add esp, 8
push esi
call fcn.00401c40
add esp, 4
call fcn.00401aa0
push 0x405268
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401c35
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405278
call esi
push eax
call dword [0x4057dc]
add esp, 8
test eax, eax
je 0x401c35
push 0x405280
call esi
push eax
call dword [0x4057e4]
add esp, 8
call dword [0x4056bc]
mov eax, edi
pop edi
pop esi
ret