joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e94
Capabilities:
Read file on windows

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

Function at 0x41828e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407080
mov eax, dword [0x430040]
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.00415fa2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4182d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41842c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422960
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 + 0x4758c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419288
mov ecx, dword [esi*4 + 0x4758c0]
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 0x418425
cmp eax, dword [edi + ecx + 0x24]
jne 0x418425
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 0x418425
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419288
add esp, 0x14
test edx, edx
jl 0x418425
jg 0x41839b
test eax, eax
jb 0x418425
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418425
jl 0x4183b5
cmp dword [ebp - 0x1008], eax
ja 0x418425
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4183d3
test ebx, ebx
je 0x41840c
cmp ecx, edi
jae 0x41840c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4183ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4183f9
cmp byte [ecx + 1], 0xa
jne 0x4183f9
inc ecx
jmp 0x4183f9
movzx eax, al
movsx eax, byte [eax + 0x430310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4183d3
cmp edx, ebx
jne 0x4183d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41842a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406520
leave
ret
Function at 0x418723
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 + 0x4758c0]
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 0x418763
cmp byte [ebx], 0xa
jne 0x418763
or byte [eax + edi + 0x28], 4
jmp 0x418768
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418866
mov al, byte [edx]
cmp al, 0x1a
je 0x418848
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418797
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4187bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4187c6
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 0x418779
jmp 0x418866
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 0x418843
cmp dword [ebp - 0xc], 0
je 0x418843
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4758c0]
test byte [eax + edi + 0x28], 0x48
je 0x41881d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418808
mov byte [esi], dl
jmp 0x418819
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4758c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418866
cmp byte [ebp - 1], 0xa
jne 0x41882c
cmp esi, ebx
jne 0x41882c
mov byte [esi], 0xa
jmp 0x418865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418866
mov byte [esi], 0xd
jmp 0x418865
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4758c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418862
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418866
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41886f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4758c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4188b2
cmp word [esi], dx
jne 0x4188b2
or byte [edi + eax + 0x28], 4
jmp 0x4188b7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418a0a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4189ea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4188f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41892f
cmp eax, edx
jae 0x41893b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4188d1
jmp 0x418a0a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4189e6
cmp dword [ebp - 0x14], 0
je 0x4189e6
mov eax, dword [ebx*4 + 0x4758c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4189be
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418987
mov word [esi], cx
jmp 0x4189ba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4758c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4758c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4758c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418a0a
pop ebx
cmp word [ebp - 4], bx
jne 0x4189cf
cmp esi, dword [ebp + 0xc]
jne 0x4189cf
mov word [esi], bx
jmp 0x418a07
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418a0a
push 0xd
jmp 0x418a03
mov ecx, dword [ebx*4 + 0x4758c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a0a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4240b6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x430040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
mov dword [esp + 0x30], ebx
call fcn.00406533
pop ecx
mov ecx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x28], eax
xor edx, edx
mov byte [esp + ecx + 0x38], cl
push 0x2f
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x474790]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x4240f5
mov esi, ebx
mov edi, ebx
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x42413f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x42411c
movsd xmm0, qword [0x42cd48]
mov eax, ebx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
movsd qword [esp + 0x30], xmm0
inc eax
and eax, 0x800000ff
jns 0x424185
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + eax + 0x38]
movzx edi, bl
add ecx, edi
mov dword [esp + 0x14], eax
and ecx, 0x800000ff
jns 0x4241a2
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.00403d30
mov esi, dword [esp + 0x1c]
movsd xmm1, qword [esi]
call fcn.00401a7f
push eax
call fcn.00403105
mov edx, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edx + 0x38]
mov byte [esp + ecx + 0x38], al
mov byte [esp + edx + 0x38], bl
movzx eax, byte [esp + ecx + 0x38]
mov ebx, dword [esp + 0x10]
add eax, edi
movzx eax, al
mov al, byte [esp + eax + 0x38]
xor byte [ebx + 0x430ae0], al
mov eax, dword [esp + 0x24]
sub eax, esi
and eax, 0xfffffff8
push eax
push esi
call fcn.00403798
xor eax, eax
inc ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
cmp ebx, 0x43800
jl 0x424176
lea ecx, [esp + 0x28]
call fcn.00401a64
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406520
mov esp, ebp
pop ebp
ret
Function at 0x424363
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00406533
lea ecx, [ebp - 8]
xor ebx, ebx
push ecx
push ebx
push eax
push 0x403efb
push ebx
push ebx
mov dword [eax], 0x42424d
call fcn.0040adaa
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x424445
cmp dword [ebp - 8], ebx
je 0x42444c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 8], eax
jne 0x4243b9
push 5
jmp 0x42444e
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00405df0
add esp, 0xc
test eax, eax
je 0x4243d0
push 2
jmp 0x42444e
push esi
push edi
push ebx
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
mov dword [ebp - 0x14], ecx
push 0x64
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
pop edi
push 2
pop esi
cmp ecx, eax
je 0x424406
mov dword [ecx], ebx
add ecx, 4
mov dword [ebp - 0x14], ecx
jmp 0x424419
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403c11
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub esi, 1
jne 0x4243f8
sub edi, 1
jne 0x4243f5
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x42443b
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00403798
pop ecx
pop ecx
cmp dword [ebp - 8], 0
jne 0x424453
xor eax, eax
leave
ret
mov dword [ebp - 8], ebx
push 6
jmp 0x42444e
push 1
call fcn.00404166
call fcn.0040d772
int3

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 0x401cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x401cd2
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x522478]
inc eax
cmp eax, 1
mov dword [0x522478], eax
jne 0x401cf7
push 0
call fcn.004acd7a
xor eax, 0xbb40e64e
push eax
call fcn.004bbaca
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.00401e90
add esp, 0xc
xor esi, esi
call fcn.004bbaa9
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00401e10
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.00401e30
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x401d14
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.00401e90
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00401e10
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.00401e30
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x401d69
push edi
push ebp
call fcn.00401e10
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00401e10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x40a360
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0fcc
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51f524]
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
mov eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a54f
cmp word [edi], 0
je 0x40a54f
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40a3bb
or eax, 0xffffffff
jmp 0x40a551
call fcn.00409e40
mov ecx, eax
test ecx, ecx
je 0x40a56f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00409520
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00409ef0
mov edx, dword [ebp - 0x228]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a432
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x40a449
or edi, 0xffffffff
jmp 0x40a52f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048d040
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x40a496
xor edi, edi
jmp 0x40a52f
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00409bd0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.00409ad0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00409520
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00457e10
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00409920
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.00499ea7
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.00409920
lea ecx, [ebp - 0x224]
call fcn.00409920
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a54b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x40a551
xor eax, eax
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.00466ab7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409b80
int3
Function at 0x40aea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40aef9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40aef9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40aeea
cmp esi, edx
jae 0x40aef9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40aed8
cmp esi, edx
jae 0x40aef9
cmp word [esi], 0
je 0x40aef9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x411240
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1906
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x51f524]
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
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048d040
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4112c1
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x4112b3
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00409e40
mov ecx, eax
test ecx, ecx
je 0x411423
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040c460
test al, al
jne 0x411338
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411316
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040ad60
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411354
mov bl, 1
jmp 0x411362
push esi
call fcn.00433d70
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411381
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x411403
cmp dword [edi], 0
jne 0x4113ea
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x411403
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4113ea
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x411403
cmp dword [edi + 4], 0
je 0x411403
cmp dword [edi + 0xc], 0
je 0x411403
mov eax, 1
jmp 0x411405
xor eax, eax
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.00466ab7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409b80
int3
Function at 0x411dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1976
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51f524]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x411e7c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x411e7c
call fcn.00410ea0
mov edi, eax
jmp 0x411f9b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x411e9f
call fcn.00410ea0
jmp 0x411f8e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x411ebd
call fcn.00410ea0
jmp 0x411f8e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x411ede
mov edi, 0x8007000e
jmp 0x411f90
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x411fd4
jb 0x411efc
cmp eax, 0xffffffff
ja 0x411fd4
cmp eax, 0x400
jbe 0x411f11
push eax
lea ecx, [ebp - 0x418]
call fcn.00410dc0
jmp 0x411f37
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x411f37
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x411f4e
mov edi, 0x8007000e
jmp 0x411f90
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x411f6e
call fcn.00410ea0
jmp 0x411f8e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00411c30
mov edi, eax
test esi, esi
je 0x411f9b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x411fb4
lea ecx, [ebp - 0x418]
call fcn.004110c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466ab7
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00409b80
int3