joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e6b7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x1026bb8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [ebp + 0xc], 0
mov ebx, dword [eax + 0xc]
je 0x100e760
test byte [ebp + 0xa], 1
je 0x100e748
test byte [esi + 0x65], 4
je 0x100e70b
mov ecx, esi
call fcn.0100de40
mov ebx, eax
mov edi, 0xf000
test edi, ebx
je 0x100e70b
call fcn.0100cf94
test al, al
je 0x100e70b
push edi
push ebx
mov ecx, esi
call fcn.01010666
jmp 0x100e748
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.01007114
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0100712f
push 0xb
push dword [eax + 4]
push dword [eax]
push dword [edi + 4]
push dword [edi]
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetRect]
mov ecx, dword [ebp + 0xc]
call fcn.010070fe
mov ecx, dword [ebp - 4]
call fcn.010070fe
test byte [ebp + 0xa], 2
je 0x100e806
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_InvalidateGadget]
jmp 0x100e806
test byte [ebp + 8], 5
je 0x100e7ad
mov eax, esi
mov edi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100e777
cmp dword [edi + 0x44], 0xfffffffe
jne 0x100e768
test byte [ebp + 8], 1
je 0x100e78e
or byte [esi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push edi
call fcn.0100d054
test byte [ebp + 8], 4
je 0x100e7ad
mov eax, dword [esi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [esi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push edi
call fcn.0100d054
test byte [ebp + 8], 0xa
je 0x100e806
mov eax, esi
xor edi, edi
mov esi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100e7cc
test edi, edi
jne 0x100e7c6
mov edi, eax
cmp dword [esi + 0x44], 0xfffffffe
jne 0x100e7b7
test edi, edi
je 0x100e806
test byte [ebp + 8], 2
je 0x100e7e7
or byte [edi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push esi
call fcn.0100d054
test byte [ebp + 8], 8
je 0x100e806
mov eax, dword [edi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [edi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push esi
call fcn.0100d054
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10141f4
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xcc
push esi
push dword [ebp + 0x7c]
lea eax, [ebp - 0x60]
push dword [ebp + 0x78]
mov esi, ecx
push dword [ebp + 0x74]
push 0x1003cdc
push 0x65
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
and word [ebp + 0x68], 0
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x10]
test eax, eax
pop esi
je 0x1014241
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call eax
add ebp, 0x6c
leave
ret 0xc

Function at 0x1015841
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esi + 0x43c], eax
mov word [esi + 0x2c], cx
mov word [esi + 0x234], cx
jne 0x1015874
lea eax, [esi + 0x440]
mov dword [eax], ecx
mov dword [esi + 0x43c], eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
and byte [esi + 0xc], 0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x54]
push 0x1003f08
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x43c]
mov edi, dword [eax]
add esp, 0xc
push 0x1003ef8
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10158de
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10158de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010154b0
test eax, eax
jl 0x10158e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1015e38
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 5
pop edi
jb 0x1015e6e
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
jae 0x1015e70
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x1015f6d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1026bb8]
cmp eax, 0xffffffff
push ebx
push esi
push edi
jne 0x1015f8a
mov edi, 0x80004005
jmp 0x1016092
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x1015fa1
inc dword [eax + 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x1c
push 8
push dword [0x102c110]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x1015fc1
mov edi, 0x8007000e
jmp 0x1016055
push esi
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 8]
push eax
push ebx
push 0x30
push 0x18
call fcn.0101832e
mov edi, eax
cmp edi, ebx
jl 0x1016055
lea eax, [esi + 0xc]
push eax
call fcn.0100ed3f
mov edi, eax
cmp edi, ebx
jl 0x1016055
lea eax, [esi + 0x10]
push eax
push 8
call fcn.0101a54e
mov edi, eax
cmp edi, ebx
jl 0x1016055
mov dword [esi + 4], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
cmp dword [0x102c160], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
setne cl
push 2
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 8], ebx
add ecx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.DUSER.dll_InitGadgets]
cmp eax, ebx
mov dword [esi], eax
jne 0x1015f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, ebx
je 0x1016092
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x1016065
call fcn.0101a547
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1016072
push eax
call fcn.01008446
mov eax, dword [esi]
cmp eax, ebx
je 0x101607f
push eax
call dword [sym.imp.DUSER.dll_DeleteHandle]
push esi
call fcn.01007e69
push ebx
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x1015f9c

Function at 0x1016099
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1026bb8]
cmp eax, 0xffffffff
jne 0x10160a9
mov eax, 0x80004005
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10160be
mov eax, 0x8004000a
pop esi
ret
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x1016107
push dword [esi]
call dword [sym.imp.DUSER.dll_DeleteHandle]
cmp byte [esi + 0x14], 0
je 0x10160db
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esi + 0x10]
call fcn.0101a547
push dword [esi + 0xc]
call fcn.01008446
mov ecx, dword [esi + 8]
call fcn.0101a547
push esi
call fcn.01007e69
push 0
push dword [0x1026bb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop esi
ret
Function at 0x1000667d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100066ba
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100066b3
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100066bf
add edx, 0x28
cmp edx, esi
jne 0x100066a4
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100066bc

Function at 0x1000b39c
Capabilities:
Encode data using xor

Disassembly:
call 0x1000b315
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1000b345
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1000b361
xor edx, 0
jmp 0x1000b36c
xor edx, edx
jmp 0x1000b383
jmp 0x1000b38f
xor eax, eax
push 0x8427d7c0
call 0x1000b39c
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1000b3d8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1000b3b1
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1000b3ef
add eax, 0
jno 0x1000b3f4
add esi, 0
ret 0x10
Function at 0x1000c15d
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1000c17f
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1000c321
cmp edi, dword [ebp + 0x10]
jb 0x1000c321
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1000bc49
inc edi
jmp 0x1000c208
jmp 0x1000c215
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000bc49
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000bc49
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1000c269
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1000c24d
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1000c297
add dword [eax], 0x39
jle 0x1000c273
sub al, 0xf5
mov ch, al
call fcn.1000c2ac
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1000df84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1000df9a
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1000dfab
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1000dfec
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x10010358
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100102a1
add ebx, 0
push ecx
call 0x100102b6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x1004a0b5
sub ebx, dword [0x100698f4]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100698e4
call fcn.1000bd80
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1000b28e
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x10010414
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10010414
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100103cb
mov eax, 1
lock xchg dword [0x100698f0], eax
push 0x3dd1fc71
call 0x10010358
push esi
add esp, 8
cmp eax, 0
jne 0x10010341
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10010367
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1001037c
cmp ecx, edx
cmp eax, 0
je 0x100103a1
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1001038b
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100103ba
dec eax
loope 0x100103bd
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100698f0], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100103f1
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10010406
jmp 0x10010411
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100102ff
Function at 0x10017479
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1001774f
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x10056568
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x1004d52e
push 0xffffffffffffffff
call fcn.1000e679
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100174e3
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100174fb
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10017743
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10017717
Function at 0x10026f49
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10026f6b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10026f6b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10026f6b
ret
cmp word [ebx + 4], 0x14c
jne 0x10026f6b
test word [ebx + 0x16], 2
je 0x10026f6b
test word [ebx + 0x16], 0x100
je 0x10026f6b
cmp word [ebx + 0x18], 0x10b
jne 0x10026f6b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10026f6b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10026ff7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10026f8b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000ded6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10026f6b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10026ff7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10026f6b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10026f6b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10026f6b
ret
cmp word [ebx + 4], 0x14c
jne 0x10026f6b
test word [ebx + 0x16], 2
je 0x10026f6b
test word [ebx + 0x16], 0x100
je 0x10026f6b
cmp word [ebx + 0x18], 0x10b
jne 0x10026f6b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10026f6b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10026ff7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10026f8b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000ded6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10026f6b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100270ae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10027107
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100270ae
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100270bd
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042cd60
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002710e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000df84
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100271ad
add edi, 4
add eax, 2
dec ecx
jne 0x100270f3
call 0x1002715a
loope 0x10027150
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100271aa
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100271bb
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002716e
cmp eax, ecx
ja 0x1002716e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100271f8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100271ee
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000e463
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100270bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10027107
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100270ae
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100270bd
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042cd60
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002710e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000df84
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100271ad
add edi, 4
add eax, 2
dec ecx
jne 0x100270f3
call 0x1002715a
loope 0x10027150
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100271aa
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100271bb
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002716e
cmp eax, ecx
ja 0x1002716e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100271f8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100271ee
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000e463
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40175c
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
mov eax, dword [ebp + 0x2b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp + 0x94]
push ecx
xor ebx, ebx
mov edi, 0x104
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
mov byte [ebp + 0x19c], bl
mov byte [ebp + 0x94], bl
call esi
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x4017c1
mov byte [eax], bl
lea eax, [ebp + 0x94]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x401849
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x94]
push 0x4044c8
push eax
call fcn.0040112c
add esp, 0x10
inc dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 0x19c]
push eax
push edi
push eax
call esi
lea eax, [ebp + 0x19c]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x401842
push ebx
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
cmp byte [eax], bl
jne 0x4017d2
mov ecx, dword [ebp + 0x2a4]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040352e
add ebp, 0x2a8
leave
ret

Function at 0x4018f0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov dword [esp + 0x24], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40198d
push ebx
push ebp
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, esi
je 0x40194b
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call ebp
push dword [esp + 0x14]
call ebp
pop ebp
pop ebx
cmp edi, esi
je 0x40198d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x401986
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x401986
cmp dword [esi], 0x4550
jne 0x401986
mov dword [esp + 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x40210e
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
jmp 0x402160
dec esi
cmp byte [esi], 0x2f
jne 0x402160
push 0x404560
push esi
call fcn.00402095
pop ecx
pop ecx
test eax, eax
jne 0x402166
push str.autoextract
push esi
call fcn.00402095
pop ecx
pop ecx
test eax, eax
je 0x402160
cmp dword [0x406454], 0
jne 0x402160
mov dword [0x406454], 1
cmp esi, edi
ja 0x402125
jmp 0x402169
mov byte [esi], 0
pop edi
pop esi
ret