joyce8/EMBER2024-capa huggingface dataset:
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 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub edi, 0x1889bb9f
mov eax, 0x699b9ba
call fcn.0043b68b
or eax, edi
xor dword [edx], ecx
add eax, 0x68e373bd
push 0x228b491b
mov edi, dword [esp]
add esp, 4
push edi
pop eax
add edx, 1
or eax, eax
cmp edx, ebx
jne fcn.0043b64b
mov edi, edi
ret
Function at 0x100142b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jb 0x10014365
push ebx
push ebp
xor edi, edi
mov ebp, closesocket
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x100142d3
mov ebx, 0x26f
jmp 0x1001432c
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, ebx
jl 0x10014307
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebp
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebp
pop ebx
mov eax, dword [eax*4 + 0x10038110]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
ret

Function at 0x1001478e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1001479d
pop dword [ebp - 0x38]
mov eax, 0x1001479d
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4d5f0f1b
add dword [ebp - 0x48], 0xf33630
mov dword [ebp - 0x44], 0x502e1926
add dword [ebp - 0x44], 0xe205331f
mov dword [ebp - 0x40], 0x336ec742
sub dword [ebp - 0x40], 0xe7228314
mov dword [ebp - 0x3c], 0x79d8b8c
add dword [ebp - 0x3c], 0xf8627474
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x42dd5d3e
add dword [ebp - 0x48], 0x31950c18
mov dword [ebp - 0x44], 0x7403341
sub dword [ebp - 0x44], 0xc5d3d1cc
mov dword [ebp - 0x40], 0x2a2ef1b4
add dword [ebp - 0x40], 0x39407ab8
mov dword [ebp - 0x3c], 0x332f4aab
sub dword [ebp - 0x3c], 0x332f4aab
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3cc23
push 0
call eax
mov ecx, 0x2c6925b7
sub ecx, 0x2c68d700
xor ebx, ebx
add ebx, eax
mov edi, 0x10088400
add edi, dword [ebp - 0x38]
mov edx, 0x78ef1629
add edx, 0x63849042
add dword [ebp - 4], eax
mov esi, dword [edi]
xor dword [ebp - 0x1c], 0x33f7b8ea
sub esi, edx
xor dword [ebp - 0x10], ebx
mov dword [ebx], esi
xor dword [ebp - 0x2c], 0xdf01711a
add ebx, 0x2fad4abc
sub ebx, 0x2fad4ab8
add edi, 0x58dcefde
sub edi, 0x58dcefda
loop 0x100148ac
add eax, 0x12daf
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x5336f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd6000]
push edi
jmp 0x53370a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x533711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x533700
mov eax, 1
add ebx, ebx
jne 0x533723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x533734
jne 0x533753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x533753
dec eax
add ebx, ebx
jne 0x533740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x533718
add ebx, ebx
jne 0x53374f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5337a5
xor ecx, ecx
sub eax, 3
jb 0x53376b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5337da
sar eax, 1
mov ebp, eax
jmp 0x533776
add ebx, ebx
jne 0x533776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x533744
inc ecx
add ebx, ebx
jne 0x533784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x533744
add ebx, ebx
jne 0x533791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x533786
jne 0x5337a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x533786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5337c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5337b6
jmp 0x533706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5337c4
add edi, ecx
jmp 0x533706
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5337e2
cmp byte [edi], 0x11
jne 0x5337e2
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 0x5337e7
lea edi, [esi + 0x12c000]
mov eax, dword [edi]
or eax, eax
je 0x53385f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x181108]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x181284]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x533814
mov ecx, edi
jns 0x533843
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 + 0x181288]
or eax, eax
je 0x533859
mov dword [ebx], eax
add ebx, 4
jmp 0x533831
call dword [esi + 0x181298]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x533890
cmp al, 0xef
ja 0x533883
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x533865
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x533872
mov ebp, dword [esi + 0x18128c]
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 0x5338c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x29a066a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x29a066b7
pop dword [ebp - 0x44]
mov eax, 0x29a066b7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x4b816888
add dword [ebp - 0x54], 0x2d0dcc3
mov dword [ebp - 0x50], 0x7d963b17
sub dword [ebp - 0x50], 0x4b62eed2
mov dword [ebp - 0x4c], 0xf7328c6f
sub dword [ebp - 0x4c], 0xaae64841
mov dword [ebp - 0x48], 0xb83e891f
add dword [ebp - 0x48], 0x47c176e1
lea eax, [ebp - 0x54]
push eax
mov eax, 0x127c6d9e
sub eax, 0xe8db5d26
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xa29e9f96
sub dword [ebp - 0x54], 0x2e2c3640
mov dword [ebp - 0x50], 0xacdd3b10
sub dword [ebp - 0x50], 0x6b70d99b
mov dword [ebp - 0x4c], 0xeefc21f2
add dword [ebp - 0x4c], 0x74734a7a
mov dword [ebp - 0x48], 0x8ef06e63
add dword [ebp - 0x48], 0x710f919d
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39344
push 0
call eax
mov ecx, 0x45ce
mov edi, eax
mov ebx, 0x269264b7
sub ebx, 0xfcf07ab7
add ebx, dword [ebp - 0x44]
mov esi, 0xc9b24c09
sub esi, 0x79345239
xor dword [ebp - 0x3c], 0xae1ffeeb
mov edx, dword [ebx]
mov dword [ebp - 0x3c], 0x3936efb9
add edx, esi
xor dword [ebp - 0xc], 0xf024ec17
mov dword [edi], edx
add dword [ebp - 0x38], esi
add edi, 4
add ebx, 0xbd1300df
sub ebx, 0xbd1300db
loop 0x29a067c9
add eax, 0x10a0b
mov ebx, eax
add eax, 0x5b674511
sub eax, 0x5b67450c
mov ecx, 0xe9f3f43
sub ecx, 0xe4ff3f43
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4073a6
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x410860
call fcn.004073b0
push 1
call fcn.00406c1d
pop ecx
test al, al
je 0x407390
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00406beb
mov byte [ebp - 0x24], al
mov eax, dword [0x4122dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x407390
test eax, eax
jne 0x4072b4
mov dword [0x4122dc], ecx
push 0x40926c
push 0x409260
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x407297
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x407380
push 0x40925c
push 0x409248
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4122dc], 2
jmp 0x4072b9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00406d8f
pop ecx
call fcn.00407a25
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4072ea
push esi
call fcn.00406cfb
pop ecx
test al, al
je 0x4072ea
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x409244]
call esi
call fcn.00407a2b
mov esi, eax
cmp dword [esi], edi
je 0x407308
push esi
call fcn.00406cfb
pop ecx
test al, al
je 0x407308
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00407807
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00407840
test al, al
je 0x407397
test bl, bl
jne 0x407336
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00406dac
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x407380
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004076ed
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004a1000
jmp 0x40722a
Function at 0x41ef00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x41ef0f
pop dword [ebp - 0x1c]
mov eax, 0xff08ecb3
sub eax, 0xfec6fda4
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x4eeecf30
sub dword [ebp - 0x2c], 0x9c89e5
mov dword [ebp - 0x28], 0xe56e6477
add dword [ebp - 0x28], 0x4cc4e7ce
mov dword [ebp - 0x24], 0x430305e9
sub dword [ebp - 0x24], 0xf6b6c1bb
mov dword [ebp - 0x20], 0xf09030c8
add dword [ebp - 0x20], 0xf6fcf38
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xb48d51c
sub eax, 0xb057468
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x403529be
add dword [ebp - 0x2c], 0x343d3f98
mov dword [ebp - 0x28], 0x3b4691bb
add dword [ebp - 0x28], 0x625cfba
mov dword [ebp - 0x24], 0x1ff64c0b
add dword [ebp - 0x24], 0x43792061
mov dword [ebp - 0x20], 0xa065c65f
add dword [ebp - 0x20], 0x5f9a39a1
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc113ead7
sub eax, 0xc0d0898b
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37ab4
push 0
call eax
mov ecx, 0x38ad
mov edx, eax
mov ebx, 0x446000
add ebx, dword [ebp - 0x1c]
mov edi, 0x7a84fc88
sub edi, 0xf24428a0
sub dword [ebp - 4], edx
mov esi, dword [ebx]
xor dword [ebp - 4], esi
xor esi, edi
xor dword [ebp - 0x18], edi
mov dword [edx], esi
add edx, 0x2cfea50d
sub edx, 0x2cfea509
add ebx, 0x1a6ffc99
add ebx, 0xe590036b
loop 0x41f025
add eax, 0xa0f85944
sub eax, 0xa0f783bd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9f602264
add ecx, 0x60dfdd9c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4265e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426603
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x4266ad
lea ecx, [ebp - 0x10]
call main
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call main
test al, al
jne 0x42663d
lea ecx, [ebp - 0x10]
call main
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426642
sub ecx, edx
sar ecx, 1
je 0x426696
movzx eax, word [esi + ecx*2 - 2]
cmp eax, 0x2e
je 0x426696
cmp ecx, 1
jbe 0x42666f
cmp word [esi + ecx*2 - 4], 0x2e
jne 0x42666f
cmp eax, 0x5c
je 0x426696
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x42669b
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov edi, eax
call main
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
lea ecx, [ebp - 0x10]
call main
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43428d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43a7e0
call fcn.00434520
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR120.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x440c6c
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x434127
cmp eax, edx
jne 0x434110
xor esi, esi
inc esi
mov edi, esi
jmp 0x43412a
xor esi, esi
inc esi
cmp dword [0x440c70], esi
jne 0x43413c
push 0x1f
call sub.MSVCR120.dll__amsg_exit
pop ecx
jmp 0x434177
cmp dword [0x440c70], 0
jne 0x434171
mov dword [0x440c70], esi
push 0x436450
push 0x436440
call sub.MSVCR120.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x434177
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x434287
mov dword [0x440bd8], esi
cmp dword [0x440c70], esi
jne 0x43419a
push 0x43643c
push 0x436408
call sub.MSVCR120.dll__initterm
pop ecx
pop ecx
mov dword [0x440c70], 2
test edi, edi
jne 0x4341a7
xor eax, eax
mov ecx, 0x440c6c
xchg dword [ecx], eax
cmp dword [0x440c74], 0
je 0x4341cb
push 0x440c74
call main
pop ecx
test eax, eax
je 0x4341cb
push 0
push 2
push 0
call dword [0x440c74]
mov eax, dword [sym.imp.MSVCR120.dll__wcmdln]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp ax, si
ja 0x434224
test ax, ax
je 0x4341ec
test edx, edx
jne 0x434224
movzx eax, word [ecx]
test ax, ax
je 0x434201
cmp ax, si
ja 0x434201
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x4341ec
push ebx
push ecx
push 0
push 0x400000
call main
mov dword [0x440bdc], eax
cmp dword [0x440be0], 0
jne 0x43426c
push eax
call dword [sym.imp.MSVCR120.dll_exit]
cmp eax, 0x22
jne 0x434235
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x20], edx
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x4341db
cmp dword [0x440bd8], 0
jne 0x434280
call dword [sym.imp.MSVCR120.dll__cexit]
mov eax, dword [0x440bdc]
mov dword [ebp - 4], 0xfffffffe
call fcn.00434565
ret
call main
jmp 0x4340e0

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45c609ee
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
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, 0x50143e08
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402a7e
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402acb
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x41f390
push 0x4766b0
mov byte [edi + esi], al
call fcn.00401374
push eax
call fcn.004019f8
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402a8c
pop edi
pop esi
ret

Function at 0x402f68
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x475500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f3b0
lea ecx, [ebp - 0x1c]
call fcn.00401af2
push 0xc
call fcn.004065e4
xor esi, esi
pop ecx
test eax, eax
je 0x402fa1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401b4b
jmp 0x402fa3
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x475018
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push esi
push esi
push esi
push 0x402a6c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00402a52
mov edx, 0x475018
add edx, 0x188
mov esi, str.1A_vv
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402918
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00406622
leave
ret

Function at 0x4071ff
Capabilities:
Parse pe header

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

Function at 0x411ef9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push 0x420d94
push 0x1e
call fcn.00411d66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f140]
call esi
jmp 0x411f33
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x414426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004140c8

Function at 0x414431
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414257

Function at 0x41482b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407370
mov eax, dword [0x475500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004132bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41486d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4149c9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041dd40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x477048]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159fb
mov ecx, dword [esi*4 + 0x477048]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4149c2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4149c2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4149c2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159fb
add esp, 0x14
test edx, edx
jl 0x4149c2
jg 0x414938
test eax, eax
jb 0x4149c2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4149c2
jl 0x414952
cmp dword [ebp - 0x1008], eax
ja 0x4149c2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414970
test ebx, ebx
je 0x4149a9
cmp ecx, edi
jae 0x4149a9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41498a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414996
cmp byte [ecx + 1], 0xa
jne 0x414996
inc ecx
jmp 0x414996
movzx eax, al
movsx eax, byte [eax + 0x4757d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414970
cmp edx, ebx
jne 0x414970
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4149c7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406622
leave
ret
Function at 0x414e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x477048]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414ed9
cmp byte [ebx], 0xa
jne 0x414ed9
or byte [eax + edi + 0x28], 4
jmp 0x414ede
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414fdc
mov al, byte [edx]
cmp al, 0x1a
je 0x414fbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414f0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414f32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414f3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x414eef
jmp 0x414fdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x414fb9
cmp dword [ebp - 0xc], 0
je 0x414fb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x477048]
test byte [eax + edi + 0x28], 0x48
je 0x414f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f7e
mov byte [esi], dl
jmp 0x414f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x477048]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fdc
cmp byte [ebp - 1], 0xa
jne 0x414fa2
cmp esi, ebx
jne 0x414fa2
mov byte [esi], 0xa
jmp 0x414fdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fdc
mov byte [esi], 0xd
jmp 0x414fdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x477048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret