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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045e7e0
mov eax, dword [0x4e0070]
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.0048aae3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47d936
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47da92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049c760
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 + 0x4e3bc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0048f1a8
mov ecx, dword [esi*4 + 0x4e3bc0]
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 0x47da8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x47da8b
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 0x47da8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048f1a8
add esp, 0x14
test edx, edx
jl 0x47da8b
jg 0x47da01
test eax, eax
jb 0x47da8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47da8b
jl 0x47da1b
cmp dword [ebp - 0x1008], eax
ja 0x47da8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47da39
test ebx, ebx
je 0x47da72
cmp ecx, edi
jae 0x47da72
mov al, byte [ecx]
cmp al, 0xd
jne 0x47da53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47da5f
cmp byte [ecx + 1], 0xa
jne 0x47da5f
inc ecx
jmp 0x47da5f
movzx eax, al
movsx eax, byte [eax + 0x4e03d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47da39
cmp edx, ebx
jne 0x47da39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47da90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045d520
leave
ret

Function at 0x48bbca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4aa538
push str.FlsAlloc
push 0x1e
call fcn.0048b9f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48bbfe
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a32e0]
call esi
jmp 0x48bc04
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48bc48
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4aa55c
push str.FlsGetValue
push 0x20
call fcn.0048b9f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48bc7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a32e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48e46a
Capabilities:
Read file on windows

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

Function at 0x48e475
Capabilities:
Read file on windows

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

Function at 0x48f224
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 + 0x4e3bc0]
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 0x48f264
cmp byte [ebx], 0xa
jne 0x48f264
or byte [eax + edi + 0x28], 4
jmp 0x48f269
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48f367
mov al, byte [edx]
cmp al, 0x1a
je 0x48f349
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48f298
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48f2bd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48f2c7
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 0x48f27a
jmp 0x48f367
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 0x48f344
cmp dword [ebp - 0xc], 0
je 0x48f344
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e3bc0]
test byte [eax + edi + 0x28], 0x48
je 0x48f31e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48f309
mov byte [esi], dl
jmp 0x48f31a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e3bc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48f367
cmp byte [ebp - 1], 0xa
jne 0x48f32d
cmp esi, ebx
jne 0x48f32d
mov byte [esi], 0xa
jmp 0x48f366
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048f1c6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48f367
mov byte [esi], 0xd
jmp 0x48f366
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e3bc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48f363
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48f367
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48f370
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 + 0x4e3bc0]
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 0x48f3b3
cmp word [esi], dx
jne 0x48f3b3
or byte [edi + eax + 0x28], 4
jmp 0x48f3b8
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 0x48f50b
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 0x48f4eb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48f3fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48f430
cmp eax, edx
jae 0x48f43c
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 0x48f3d2
jmp 0x48f50b
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 0x48f4e7
cmp dword [ebp - 0x14], 0
je 0x48f4e7
mov eax, dword [ebx*4 + 0x4e3bc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48f4bf
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48f488
mov word [esi], cx
jmp 0x48f4bb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e3bc0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e3bc0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e3bc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48f50b
pop ebx
cmp word [ebp - 4], bx
jne 0x48f4d0
cmp esi, dword [ebp + 0xc]
jne 0x48f4d0
mov word [esi], bx
jmp 0x48f508
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048f1c6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48f50b
push 0xd
jmp 0x48f504
mov ecx, dword [ebx*4 + 0x4e3bc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48f502
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48f50b
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 0x49476c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x494809
push ebx
push esi
call fcn.00494735
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00490df3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4947b6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x494808
push edi
push eax
call fcn.004868cd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4947d6
call fcn.00486499
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x494807
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00490df3
add esp, 0x20
test eax, eax
jne 0x4947f5
push edi
call fcn.00486499
jmp 0x4947fd
push ebx
call fcn.00486499
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x49480c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49481d
pop esi
ret
push ebx
push edi
push esi
call fcn.00494735
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004868cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x494845
push ebx
push esi
push edi
call fcn.00476050
add esp, 0xc
push 0
call fcn.00486499
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x494c09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049485a
Function at 0x49b5f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049b571
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49b76d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49b76d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x49b71c
jg 0x49b64e
test eax, eax
je 0x49b712
push 1
push 0x1000
call fcn.00485cdd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49b674
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x49b709
push 0x8000
push ebx
call fcn.00488fd2
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x49b6a0
jg 0x49b69b
cmp ecx, 0x1000
jb 0x49b6a0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048cb1c
add esp, 0x10
cmp eax, 0xffffffff
je 0x49b6e5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x49b69b
jl 0x49b6cc
test ecx, ecx
jne 0x49b68d
push dword [ebp - 0xc]
push ebx
call fcn.00488fd2
push esi
call fcn.00486499
add esp, 0xc
xor edi, edi
jmp 0x49b77e
cmp byte [edi + 0x24], 0
je 0x49b6fc
cmp dword [edi + 0x20], 5
jne 0x49b6fc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49b707
mov edi, dword [edi + 0x18]
jmp 0x49b709
xor edi, edi
push esi
call fcn.00486499
pop ecx
jmp 0x49b77e
test ecx, ecx
jg 0x49b6de
jl 0x49b71c
test eax, eax
jae 0x49b6de
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048f1c6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49b73f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49b6de
jmp 0x49b776
push ebx
call fcn.00495167
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49b6de
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x49b77e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49b77b
mov edi, dword [edi + 0x18]
jmp 0x49b77e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048f1c6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001af0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10004008]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10001b59
cmp byte [0x1009c784], 0
jne 0x10001b59
lea eax, [ebp - 0x108]
mov byte [0x1009c784], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
push str._sDataWorld1
push eax
call fcn.10001970
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001b59
sub esp, 0x18
call fcn.10001600
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10001bf4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x3e90787c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1f9b5b9a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x418457
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub dword [esp], eax
mov cl, cl
cmp dh, 0xfd
movzx eax, byte [edi]
inc edi
nop
lea ecx, [ecx]
test dh, bl
sub dword [esp], eax
cmp byte [edi], 0
jmp 0x414271
nop
pop eax
jne 0x41440b
not edi
not edi
nop
xor eax, 0xe3128da2
mov ch, ch
cmp eax, dword [esp + 4]
jmp 0x41428e
jne 0x4183e2
not eax
mov esi, dword [edx + 0x24]
cmp ah, 0xb8
mov edi, dword [edx + 0x1c]
jmp 0x414381
lea edi, [eax + ebx]
lea ecx, [ecx]
lea ebx, [ebx]
je 0x4183d9
not dl
not dl
xchg ebx, eax
xchg ebx, eax
xor eax, eax
jmp 0x414406
and eax, 0xffff
xchg dl, dl
test dh, bh
stc
and dl, 0xb6
add dl, bl
xchg dl, dh
mov esi, dword [edi + eax*4]
add esi, ebx
ret 4
cmp edx, ebp
add esi, ebx
sbb edx, eax
lea edx, [ecx + 0x5d]
mov eax, dword [esi + ecx*2]
add edi, ebx
jmp 0x414349
cmc
wait
mov edi, edi
cmc
push eax
shl eax, 4
xchg dword [esp], eax
jmp 0x414236
ret
cld
add esi, ebx
mov al, al
xchg edi, edi
cld
lodsd eax, dword [esi]
sbb edi, 0x218c4cb1
sbb edi, 0xffffff92
inc ecx
cmp ecx, dword [edx + 0x18]
jmp 0x4142e8
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
lea edx, [edx + ebx]
nop
mov esi, dword [edx + 0x20]
mov ah, 0x5e
cmp edi, 0x5d063ff6
and al, 0xfc
or ecx, 0xffffffff
jmp 0x4183da
Function at 0x7404e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f1000]
push edi
or ebp, 0xffffffff
jmp 0x740502
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x740509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7404f8
mov eax, 1
add ebx, ebx
jne 0x74051b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x74052c
jne 0x74053c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74053c
dec eax
add ebx, ebx
jne 0x740538
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x740510
xor ecx, ecx
sub eax, 3
jb 0x740554
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7405c6
sar eax, 1
mov ebp, eax
jmp 0x74055f
add ebx, ebx
jne 0x74055f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x74056c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x740590
inc ecx
add ebx, ebx
jne 0x74057c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x740571
jne 0x74058d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x740571
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7405b0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7405a1
jmp 0x7404fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7405b0
add edi, ecx
jmp 0x7404fe
pop esi
mov edi, esi
mov ecx, 0xbdc1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7405ce
cmp byte [edi], 0x16
jne 0x7405ce
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 eax, ebx
loop 0x7405d3
lea edi, [esi + 0x33c000]
mov eax, dword [edi]
or eax, eax
je 0x740642
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34b76c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34b85c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x740600
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34b860]
or eax, eax
je 0x74063c
mov dword [ebx], eax
add ebx, 4
jmp 0x74061d
call dword [esi + 0x34b864]
popal
jmp 0x581834
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5a2bf8]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0x5a2bf8]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5a2bf8
call fcn.0040ef9f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5a2c04], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5a2c08]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0x5a2c08]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5a2c04], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5a2c08]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0x5a2c08]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0x5a2b50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273f0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5d0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427480
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427480
push 0x404605
push 0x4e2b
push edi
call fcn.00427480
push esi
push 0x2711
push edi
call fcn.00427480
push edi
call fcn.00427470
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5c0
push edi
call fcn.004273d0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x5a2c30], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0x5a2c30], edi
call fcn.0040e96a
mov dword [0x5a2c2c], eax
cmp word [0x5a2c24], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0x5a2c24], di
jmp 0x40478b
xor eax, eax
mov word [0x5a2c24], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5a2c40], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0x5a2c40]
mov dword [0x5a2c34], eax
call esi
push str.getnameinfo
push dword [0x5a2c40]
mov dword [0x5a2c38], eax
call esi
cmp dword [0x5a2c34], 0
mov dword [0x5a2c3c], eax
pop esi
je 0x4047f4
cmp dword [0x5a2c38], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0x5a2c28], edi
movsx eax, word [0x5a2c24]
pop edi
add esp, 0x190
ret