joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sbb edx, 0x46
imul edx
bswap eax
not esi
mov edx, 0x18
rcl esi, 1
rol ebx, 0xc0
inc ebx
and eax, 0xde
dec edi
sub esi, 0xbe
not esi
sbb ebx, 0x58
rcr edx, 0x72
mov eax, 0xa9
dec eax
sbb ebx, 0xa5
neg eax
not ebx
neg ebx
not edx
dec edx
and edx, 0xe6
sbb eax, 0xfd
mov edi, 0xf8
rcl esi, 0x32
sbb eax, 0xaf
bswap esi
mov esi, 0x46
neg ebx
neg ebx
or esi, 0x95
add edi, 0x4b
and edx, 0x7b
ror eax, 0xaf
sub edx, 0xa8
rcr edi, 0x36
mov ebx, 0xe
dec ebx
rcl esi, 0x26
sub ebx, 0x62
neg edx
or esi, 0xca
rol edx, 0xe8
sub eax, 0x99
and esi, 0xe5
not eax
inc eax
not edx
and eax, 0x39
xor ecx, ecx
xor edi, edi
dec edx
imul edx
imul edi
sub edx, 0x27
sbb eax, 8
inc ebx
or edx, 0x83
inc edx
ror edx, 0x82
imul edx
neg esi
neg edi
neg edx
or eax, 0xc2
inc edx
inc esi
or esi, 0x4e
and edi, 0x2b
neg edx
ror ebx, 0x13
not eax
neg ebx
neg ebx
bswap eax
mov ebx, 0x1b
neg eax
dec ebx
dec edi
rcl ebx, 3
mov esi, 0x3b
inc esi
sbb eax, 0x9d
rcl esi, 0x72
not edi
inc edx
rcl edx, 0x2e
rcr eax, 0x4b
rol edx, 0x9b
rol eax, 0xf7
imul esi
ror ebx, 0x72
bswap esi
imul eax
add edx, 0x64
mov edx, 0xba
mov edx, 0x31
bswap edi
rcr esi, 0x85
not ebx
add edi, 0x64
mov ecx, dword [ebp + 0xc]
rol ebx, 0x6e
imul edx
dec esi
ror eax, 0x28
ror esi, 0xe5
neg edi
mov ebx, 0xcc
mov ebx, 0x71
not esi
inc esi
neg esi
not edx
and ebx, 0x44
mov eax, 0xaa
rol esi, 0xe4
mov eax, 0xdc
rcr eax, 0x20
dec edx
imul edi
imul esi
inc eax
imul eax
rcl edi, 0xae
rol esi, 0x9c
rcr ebx, 0x29
ror ebx, 0x69
sbb edi, 0x75
bswap edi
bswap esi
or edi, 0xf9
bswap esi
or edi, 0xad
rol esi, 0x15
sub eax, 0xc9
neg ebx
rol eax, 0x16
not esi
sbb edi, 0x5d
inc ebx
neg esi
not ebx
inc eax
neg eax
or ebx, 0x92
rcl ebx, 0xee
rcl edi, 0x6b
imul esi
rcr esi, 0xfb
rcl edx, 0x57
neg eax
mov edi, dword [ebp + 8]
mov esi, eax
mov ebx, esi
xor esi, ebx
not byte [edi]
mov ebx, ebx
xor esi, eax
xor ebx, eax
xor ebx, ebx
mov eax, eax
xor ebx, esi
xor eax, eax
xor ebx, ebx
mov esi, eax
add byte [edi], 0x79
xor ebx, eax
xor ebx, esi
xor ebx, esi
mov ebx, esi
xor ebx, eax
mov eax, ebx
xor eax, eax
mov eax, eax
mov ebx, ebx
sub byte [edi], 0x30
mov ebx, ebx
mov eax, esi
xor ebx, ebx
xor esi, ebx
mov esi, ebx
mov ebx, ebx
xor esi, esi
mov esi, eax
xor eax, ebx
imul byte [edi]
inc edi
loop 0x4013c4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466000]
jne 0x404f6f
repz ret
jmp fcn.00407300
Function at 0x4055d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404385
and dword [ebp - 4], 0
cmp dword [0x467190], 0
mov ebx, eax
jne 0x405686
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405737
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405737
push eax
call fcn.00404313
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467190], eax
call esi
push eax
call fcn.00404313
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467194], eax
call esi
push eax
call fcn.00404313
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467198], eax
call esi
push eax
call fcn.00404313
pop ecx
mov dword [0x4671a0], eax
test eax, eax
je 0x405686
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404313
pop ecx
mov dword [0x46719c], eax
mov eax, dword [0x46719c]
cmp eax, ebx
je 0x4056de
cmp dword [0x4671a0], ebx
je 0x4056de
push eax
call fcn.0040438e
push dword [0x4671a0]
mov esi, eax
call fcn.0040438e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056de
test edi, edi
je 0x4056de
call esi
test eax, eax
je 0x4056d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056d5
test byte [ebp - 0xc], 1
jne 0x4056de
or dword [ebp + 0x10], 0x200000
jmp 0x405717
mov eax, dword [0x467194]
cmp eax, ebx
je 0x405717
push eax
call fcn.0040438e
pop ecx
test eax, eax
je 0x405717
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405717
mov eax, dword [0x467198]
cmp eax, ebx
je 0x405717
push eax
call fcn.0040438e
pop ecx
test eax, eax
je 0x405717
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467190]
call fcn.0040438e
pop ecx
test eax, eax
je 0x405737
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405739
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x484ce4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x484a08
mov ecx, 0x70dc4f9e
call fcn.00484d18
mov esi, 0x1d1cf78b
add ecx, ecx
inc ecx
xor dword [ebx], eax
add esi, esi
inc ecx
add ebx, 2
dec esi
cmp ebx, edi
jl fcn.00484ce4
add ecx, ecx
sub esi, esi
sub esi, 0x969ae1ef
ret
Function at 0x12b2c27
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x12edc54]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.012cd5e0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x12b2cd9
push edi
mov edi, 0x12e65fc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x12b2c72
sub eax, edx
sar eax, 1
je 0x12b2cd8
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [fcn.012e1238]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.012cbb27
push 0x12e65f4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.012cb5ce
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x12b2cd8
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.012cbe44
push dword [ebp - 0x78]
call fcn.012cb87c
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.012cb352
add ebp, 0x198
leave
ret

Function at 0x12b2e66
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push 0x3e8
mov dword [ebp - 4], edi
call dword [0x12e1250]
push 0x12e65f4
mov esi, 0x1312960
lea eax, [ebp - 4]
push esi
push eax
call fcn.012cb5ce
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x12b2f74
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.012cc2bf
push dword [ebp - 4]
call fcn.012cc4e1
mov edi, eax
push edi
call fcn.012c0fe8
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.012cc2bf
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.012cbe44
add esp, 0x30
cmp edi, eax
jne 0x12b2f55
call dword [0x12e123c]
push eax
call fcn.012cc201
pop ecx
call fcn.012cc213
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x12e87e0]
fmul qword [0x12e87d8]
fadd qword [0x12e87d0]
call fcn.012cde80
cmp edi, eax
jl 0x12b2f55
sub ebx, eax
push eax
add ebx, edi
call fcn.012b2e24
push dword [ebp - 4]
call fcn.012cb87c
pop ecx
pop ecx
push esi
call dword [0x12e1230]
push 0x12e6304
lea eax, [ebp - 4]
push esi
push eax
call fcn.012cb5ce
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x12b2f73
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.012cb783
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x12b2f64
push dword [ebp - 4]
call fcn.012cb87c
pop ecx
cmp dword [ebp - 8], 0
je 0x12b2f73
push dword [ebp - 8]
call fcn.012c0fdd
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x12b493e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x12b4a03
cmp esi, 0xa
jb 0x12b4a03
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.012cb3b0
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.012b48d0
add esp, 0xc
test eax, eax
je 0x12b49fa
push 0x12e6304
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.012cb5ce
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x12b49aa
mov dword [ebp - 8], 0xfffffffe
jmp 0x12b4a16
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.012cb783
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x12b49c9
mov dword [ebp - 8], 0xfffffffe
jmp 0x12b4a07
mov esi, dword [0x12e123c]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.012cb783
add esp, 0x10
jmp 0x12b4a07
mov dword [ebp - 8], 0xfffffffd
jmp 0x12b4a07
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x12b4a16
push dword [ebp - 4]
call fcn.012cb87c
pop ecx
test ebx, ebx
je 0x12b4a21
push ebx
call fcn.012cb47a
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x12b61b5
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x12b61c0
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x12b6272
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x12e8170]
inc ecx
sub edi, 8
dec esi
jne 0x12b61d7
pop ebx
test edi, edi
je 0x12b628b
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x12e8170]
inc ecx
dec edi
jne 0x12b6276
pop esi
not eax
pop edi
ret

Function at 0x12b6290
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x12e8170]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x12e8170]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x410e73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040af16
and dword [ebp - 0x14], 0
cmp dword [0x42d070], 0
mov dword [ebp - 0x18], eax
jne 0x410f26
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410fce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410fce
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x42d070], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x42d074], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x42d078], eax
call edi
push eax
call esi
mov dword [0x42d080], eax
test eax, eax
je 0x410f26
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x42d07c], eax
mov eax, dword [0x42d07c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410f7f
cmp dword [0x42d080], ecx
je 0x410f7f
push eax
call esi
push dword [0x42d080]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410f7f
test ebx, ebx
je 0x410f7f
call edi
test eax, eax
je 0x410f76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410f76
test byte [ebp - 8], 1
jne 0x410f7f
or dword [ebp + 0x10], 0x200000
jmp 0x410fb2
mov eax, dword [0x42d074]
cmp eax, dword [ebp - 0x18]
je 0x410fb2
push eax
call esi
test eax, eax
je 0x410fb2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410fb2
mov eax, dword [0x42d078]
cmp eax, dword [ebp - 0x18]
je 0x410fb2
push eax
call esi
test eax, eax
je 0x410fb2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d070]
call esi
test eax, eax
je 0x410fce
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410fd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b51
leave
ret
Function at 0x4135f0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004119e0
cmp dword [0x7b0e0c], 0x37
jne 0x41368a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b1e00]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x431e5c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x413910
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b0e0c]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x431e5c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413b0f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x413946
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b0e0c], 0x1c
jne 0x41395d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42bfb0]
mov ebx, dword [0x42bfb8]
mov ebp, dword [0x42bfbc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42bfb4]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x4139a6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b0d7c], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b0d7c], eax
mov eax, dword [0x7b0d7c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b0e0c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x413a3d
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b0e0c], 0x979
mov dword [0x7b0d80], 0xff6b3619
mov dword [0x7b0d84], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x413a87
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b0e0c]
cmp eax, 0x93
je 0x413aad
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x4139a0
cmp eax, 0x8d4
jne 0x413ac4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b0e0c], 0x17
jne 0x413afe
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404070
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x413940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x736c128e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6f8f4260
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret
Function at 0x6f384990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6f3a4e30
mov eax, dword [edi + 0x1c]
movzx edx, si
lea ecx, [edx + edx*2]
lea esi, [eax + ecx*8]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x6f384ae0
shl edx, 6
add eax, edx
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [eax + 0x30]
mov dword [ebx + 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [ebx + 0x34], edx
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x38], edx
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x44], eax
movzx edx, byte [esi + 4]
mov ecx, edx
and ecx, 3
jne 0x6f384aa0
movzx ecx, byte [esi + 7]
mov edx, 8
shr cl, 7
shl edx, cl
mov ecx, edx
xor edx, edx
sar ecx, 3
div ecx
xor edx, edx
mov dword [ebx + 0x44], eax
movzx ecx, byte [esi + 4]
shr cl, 2
and ecx, 7
div ecx
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
movzx eax, word [esi + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6f3a4e50
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp cl, 2
jne 0x6f384a6b
movzx ecx, byte [esi + 6]
shr dl, 2
and edx, 7
shr cl, 7
movzx edi, cl
movzx ecx, byte [esi + 7]
and ecx, 0x7f
add ecx, ecx
or ecx, edi
lea edi, [ecx + 0x16]
add ecx, 0x10
imul edi, edx
xor edx, edx
div edi
imul eax, ecx
add eax, eax
mov dword [ebx + 0x44], eax
jmp 0x6f384a6b
mov ecx, 0x10
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x6f384a29