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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x402bdc
cmp byte [esi + 0x3d], 0
je 0x402bdc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x402bca
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402b91
sub eax, 1
je 0x402b95
sub eax, 2
jne 0x402bca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040365f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402bb3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402bca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040365f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040365f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040365f
mov esp, ebp
pop ebp
ret

Function at 0x404178
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041b7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4041b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4041b7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4041b7
cmp dword [ecx + 0x74], 0xe
jbe 0x4041b7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x406010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov bh, byte [0x1a89114]
adc cl, byte [ebx + 0x5f604583]
pop eax
add byte [eax], al
xchg byte [eax], al
cmp bh, byte [eax + 0x11187]
or eax, 0xb70010c2
jge 0x40608e
cmp edi, 0x400
jbe 0x40604c
mov ecx, dword [ebp + 8]
mov eax, 0x16
pop edi
mov dword [ecx], 0
pop ebp
cmp edx, dword [eax]
dec ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [0x8c003024]
push ebx
mov word [edx + ebp*8], es
add bh, bh
mov esi, dword [ebp + 8]
cmpsb byte [esi], byte es:[edi]
cmp cl, byte [ecx + 0x4488906]
mov edx, dword [esi]
mov dword [edx + 8], edi
test dword [esi], 0xbb613c8d
sbb byte [edi + 0x2e7c10c], bh
mov dword [edx + 0xc], ecx
mov eax, dword [esi]
mov dword [eax + 0x3018], ecx
Function at 0x10001330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001388
cmp byte [esi + ebx - 1], 0xa
je 0x1000135c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100080a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10004820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004829
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x10004840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004849
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x10005590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10005599
pop esi
pop ebp
ret 8

Function at 0x100055b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055b9
pop esi
pop ebp
ret 4

Function at 0x100055d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055d9
pop esi
pop ebp
ret 8

Function at 0x10007f1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10007f2d
pop dword [ebp - 0x34]
mov eax, 0xcdcea176
sub eax, 0xbdce2249
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x73252
push 0
mov eax, 0x93489e5d
add eax, 0x7cc662cf
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x5064a397
sub ecx, 0x506450d2
mov edx, eax
mov esi, 0x1018cc00
add esi, dword [ebp - 0x34]
mov ebx, 0xc9539575
sub ebx, 0x22cf548d
add dword [ebp - 0x2c], ecx
mov edi, dword [esi]
add dword [ebp - 4], ecx
add edi, ebx
xor dword [ebp - 8], 0x5151a4eb
mov dword [edx], edi
sub dword [ebp - 8], eax
add edx, 0xd3175d68
add edx, 0x2ce8a29c
add esi, 0x8308cbf7
sub esi, 0x8308cbf3
loop 0x10007f86
add eax, 0x15cf4347
sub eax, 0x15ce0560
mov ebx, eax
add eax, 0xb2b8c8de
add eax, 0x4d473727
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100184b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1017c928]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1017f7a8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
test eax, eax
jne 0x10018588
push esi
push 0x55
pop esi
push esi
push 0x1017f7b0
push 0x5c
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x10018572
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.100a6450
add esp, 0xc
mov eax, ebx
cmp word [eax*2 + 0x1017f7b0], 0x5f
mov cl, 0x2d
je 0x10018512
mov cl, byte [eax*2 + 0x1017f7b0]
mov byte [ebp + eax - 0x5c], cl
test cl, cl
je 0x1001851f
inc eax
cmp eax, esi
jl 0x100184fe
cmp eax, esi
push 0x41
sbb al, al
and byte [ebp - 8], al
call fcn.10007f1e
mov esi, eax
pop ecx
test esi, esi
je 0x10018572
lea eax, [ebp - 0x60]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.10007f1e
add esp, 0x10
cmp dword [ebp - 0x60], ebx
jg 0x1001856b
push 0x10017d70
push 0x15
mov byte [eax + esi], bl
mov dword [0x1017f7a8], esi
mov byte [0x1017f7ac], 1
call fcn.10007f1e
pop ecx
jmp 0x10018571
push esi
call fcn.10007f1e
pop ecx
mov ecx, dword [0x1017f7a8]
mov eax, 0x100fbd80
test ecx, ecx
pop esi
cmovne eax, ecx
mov dword [0x1017f7a8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100814c9
leave
ret
Function at 0x10019a90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x1017c928]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x354]
push edi
push 0x1b0
push ebx
push eax
mov dword [ebp - 0x358], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], bx
mov word [ebp - 0x35c], bx
mov byte [ebp - 0x35a], bl
call fcn.100a6450
mov esi, 0x80
lea eax, [ebp - 0x10c]
push esi
push ebx
push eax
call fcn.100a6450
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.100a6450
add esp, 0x24
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.kernel32.dll_GetDynamicTimeZoneInformation]
cmp eax, 0xffffffff
je 0x10019ba3
push 0x10
call dword [sym.imp.kernel32.dll_GetUserGeoID]
push ebx
push 3
lea ecx, [ebp - 0xc]
push ecx
push 4
push eax
call dword [sym.imp.kernel32.dll_GetGeoInfoW]
mov edi, eax
lea eax, [ebp - 0x358]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x35c]
push 3
push eax
call fcn.10007f1e
lea eax, [ebp - 0x358]
push eax
push str.windowsZones
push ebx
call fcn.10007f1e
mov esi, eax
lea eax, [ebp - 0x358]
push eax
push esi
push str.mapTimezones
push esi
call fcn.10007f1e
lea eax, [ebp - 0x358]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2a8]
push eax
push ebx
lea eax, [ebp - 0x10c]
push 0x80
push eax
call fcn.10007f1e
add esp, 0x4c
cmp dword [ebp - 0x358], ebx
jle 0x10019bb4
test esi, esi
je 0x10019ba3
push esi
call fcn.10007f1e
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100814c9
leave
ret
cmp word [ebp - 0x2a8], bx
je 0x10019c99
lea ecx, [ebp - 0x1a4]
call sym.icucnv67.dll_public:_void___thiscall_icu_67::StackUResourceBundle::constructor_void_
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.10007f1e
add esp, 0x10
cmp dword [ebp - 0x358], ebx
jg 0x10019c8e
test edi, edi
je 0x10019c24
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.10007f1e
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x10019c4e
lea eax, [ebp - 0x358]
mov dword [ebp - 0x358], ebx
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x1a4]
push 0x100fdd94
push eax
call fcn.10007f1e
add esp, 0x10
mov ecx, eax
cmp dword [ebp - 0x358], ebx
jg 0x10019c8e
movzx eax, word [ecx]
mov edx, ebx
test ax, ax
je 0x10019c87
mov edi, eax
cmp di, 0x20
je 0x10019c7f
mov al, byte [ecx]
add ecx, 2
mov byte [ebp + edx - 0x8c], al
inc edx
movzx eax, word [ecx]
mov edi, eax
test ax, ax
jne 0x10019c62
cmp edx, 0x80
jae 0x10019cc2
mov byte [ebp + edx - 0x8c], bl
lea ecx, [ebp - 0x1a4]
call sym.icucnv67.dll_public:_void___thiscall_icu_67::StackUResourceBundle::destructor_void_
cmp byte [ebp - 0x8c], bl
je 0x10019cb0
lea eax, [ebp - 0x8c]
push eax
call fcn.10007f1e
pop ecx
mov ebx, eax
test esi, esi
je 0x10019cbb
push esi
call fcn.10007f1e
pop ecx
mov eax, ebx
jmp 0x10019ba5
call fcn.10007f1e
int3
Function at 0x1004fc10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
test eax, eax
jle 0x1004fc67
mov ebx, dword [edi + 4]
movzx edx, byte [ebp + 8]
mov ecx, dword [ebx + esi*8]
mov ebx, dword [ebx + esi*8 + 4]
movzx eax, cl
dec ebx
mov dword [ebp - 4], eax
mov eax, ebx
xor eax, ecx
test eax, 0xffffff00
jne 0x1004fc52
cmp dword [ebp - 4], edx
ja 0x1004fc5e
jmp 0x1004fc57
cmp dword [ebp - 4], edx
jbe 0x1004fcab
movzx eax, bl
cmp edx, eax
jbe 0x1004fcab
mov ebx, dword [edi + 4]
inc esi
cmp esi, dword [ebp - 8]
jl 0x1004fc32
lea ecx, [edi - 4]
call sym.icucnv67.dll_private:_signed_char___thiscall_icu_67::UnicodeSet::hasStrings_void_const
test al, al
je 0x1004fca2
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 4], esi
jle 0x1004fca2
movzx ebx, byte [ebp + 8]
push esi
mov ecx, eax
call fcn.10007f1e
push 0
mov ecx, eax
call fcn.10007f1e
movzx eax, al
cmp eax, ebx
je 0x1004fcab
mov eax, dword [edi + 0x28]
inc esi
cmp esi, dword [eax + 4]
jl 0x1004fc81
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
mov al, 1
jmp 0x1004fca4
Function at 0x5176c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
mov dword [edi + 0xcf740], 0x40d10318
push edi
jmp 0x5176ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5176f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5176e0
mov eax, 1
add ebx, ebx
jne 0x517703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517714
jne 0x517733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517733
dec eax
add ebx, ebx
jne 0x517720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5176f8
add ebx, ebx
jne 0x51772f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517785
xor ecx, ecx
sub eax, 3
jb 0x51774b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5177ba
sar eax, 1
mov ebp, eax
jmp 0x517756
add ebx, ebx
jne 0x517756
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517724
inc ecx
add ebx, ebx
jne 0x517764
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517724
add ebx, ebx
jne 0x517771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x517766
jne 0x517782
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x517766
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5177a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517796
jmp 0x5176e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5177a4
add edi, ecx
jmp 0x5176e6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5177c2
cmp byte [edi], 0x11
jne 0x5177c2
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 0x5177c7
lea edi, [esi + 0x110000]
mov eax, dword [edi]
or eax, eax
je 0x51783f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x149804]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x149980]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5177f4
mov ecx, edi
jns 0x517823
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 + 0x149984]
or eax, eax
je 0x517839
mov dword [ebx], eax
add ebx, 4
jmp 0x517811
call dword [esi + 0x149994]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x517870
cmp al, 0xef
ja 0x517863
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x517845
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x517852
mov ebp, dword [esi + 0x149988]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5178a4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x40d14a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407d4b
mov dword [ebp - 0x14], eax
cmp dword [0x813c1c], esi
jne 0x40d23d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d31d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d31d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d31d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813c1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813c20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813c24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813c2c], eax
test eax, eax
je 0x40d23a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813c28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d262
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d255
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d277
push 4
pop eax
jmp 0x40d31f
cmp dword [ebp - 0x14], esi
je 0x40d277
push dword [0x813c1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d25c
mov eax, dword [0x813c28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2d5
cmp dword [0x813c2c], edi
je 0x40d2d5
push eax
call ebx
push dword [0x813c2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2d5
test eax, eax
je 0x40d2d5
call ecx
test eax, eax
je 0x40d2ca
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2ca
test byte [ebp - 8], 1
jne 0x40d2d5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d305
mov eax, dword [0x813c20]
cmp eax, edi
je 0x40d302
push eax
call ebx
test eax, eax
je 0x40d302
call eax
mov esi, eax
test esi, esi
je 0x40d302
mov eax, dword [0x813c24]
cmp eax, edi
je 0x40d302
push eax
call ebx
test eax, eax
je 0x40d302
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813c1c]
call ebx
test eax, eax
je 0x40d31d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d31f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404248
mov esp, ebp
pop ebp
ret
Function at 0x401a38
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov byte [esi], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [esi], 0
jne 0x401a65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi], 0
jne 0x401a65
mov dword [esi], 0x5c3a43
pop edi
pop esi
ret 8

Function at 0x401a6a
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
xor ebx, ebx
push 0x40
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret 4

Function at 0x401a82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push eax
push eax
push 2
push eax
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401b10
mov dword [ebp - 8], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 4]
push 0
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test al, al
je 0x401b0b
xor eax, eax
push eax
push 0x4000000
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401b10
mov dword [ebp - 8], eax
push 0x1f4
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00401b18
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x401b12
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14

Function at 0x401b18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push edi
pushfd
lea edi, [ebp - 0x458]
mov ecx, 0x96
xor eax, eax
rep stosd dword es:[edi], eax
popfd
pop edi
mov dword [ebp - 0x448], 0x48
lea eax, [ebp - 0x400]
push 0x100
push dword [ebp + 8]
push eax
call fcn.004018f6
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x401b77
push 1
push 0x401bd1
push eax
call fcn.004018f6
push 0x2f6
push dword [ebp + 0xc]
push eax
call fcn.004018f6
lea eax, [ebp - 0x448]
lea ebx, [ebp - 0x458]
lea ecx, [ebp - 0x400]
xor edx, edx
push ebx
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bcb
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401bb3
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401460
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x401536
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
lea ecx, [edx + 1]
mov dword [ebp + 8], ecx
movzx edx, byte [edx]
mov byte [ebp + eax - 0x13], dl
cmp dword [ebp - 8], 3
jne 0x401536
movzx eax, byte [ebp - 0x13]
shr al, 2
mov byte [ebp - 0x17], al
movzx eax, byte [ebp - 0x13]
movzx eax, al
shl eax, 4
and eax, 0x30
mov edx, eax
movzx eax, byte [ebp - 0x12]
shr al, 4
add eax, edx
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x12]
movzx eax, al
shl eax, 2
and eax, 0x3c
mov edx, eax
movzx eax, byte [ebp - 0x11]
shr al, 6
add eax, edx
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x11]
and eax, 0x3f
mov byte [ebp - 0x14], al
mov dword [ebp - 8], 0
jmp 0x401529
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea ecx, [ebp - 0x17]
mov eax, dword [ebp - 8]
add eax, ecx
movzx eax, byte [eax]
movzx ecx, al
mov eax, dword [ebp - 0x10]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x4014fd
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov dword [ebp + 0xc], edx
test eax, eax
jne 0x401487
cmp dword [ebp - 8], 0
je 0x401627
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x401568
lea edx, [ebp - 0x13]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
jle 0x401559
movzx eax, byte [ebp - 0x13]
shr al, 2
mov byte [ebp - 0x17], al
movzx eax, byte [ebp - 0x13]
movzx eax, al
shl eax, 4
and eax, 0x30
mov edx, eax
movzx eax, byte [ebp - 0x12]
shr al, 4
add eax, edx
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x12]
movzx eax, al
shl eax, 2
and eax, 0x3c
mov edx, eax
movzx eax, byte [ebp - 0x11]
shr al, 6
add eax, edx
mov byte [ebp - 0x15], al
mov dword [ebp - 0xc], 0
jmp 0x4015e3
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea ecx, [ebp - 0x17]
mov eax, dword [ebp - 0xc]
add eax, ecx
movzx eax, byte [eax]
movzx ecx, al
mov eax, dword [ebp - 0x10]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
add eax, 1
cmp eax, dword [ebp - 0xc]
jg 0x4015b7
jmp 0x401603
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
cmp eax, 2
setle cl
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
cmp eax, 2
setle al
and eax, ecx
test al, al
jne 0x4015f0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
add eax, edx
mov byte [eax], 0
nop
leave
ret