joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x1000f1d0
Capabilities:
Make an http request with a cookie
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100be764]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str._IEQ_HydSel_HydSel_JSP_api_authenticate
push 0x200
push 0x1010dfe8
mov byte [0x1010dfe8], 0
call fcn.1000e500
push str._usernamealan.nicoll_inventrics.com_taco
push 0x200
push 0x1010dfe8
call fcn.1000e500
push str.passwordTaco1234_
push 0x200
push 0x1010dfe8
call fcn.1000e500
mov eax, dword [0x1010e7e8]
add esp, 0x24
mov byte [0x1010e1e8], 0
cmp eax, 0x200
jae 0x1000f3c1
mov ecx, 0x1010e1e8
mov byte [eax + 0x1010e5e8], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f250
sub ecx, edx
push ecx
push str.Content_Length:__d
push 0x200
push 0x1010e5e8
call fcn.1000e460
add esp, 0x10
push 0
push 0x80800000
push 0x100900f0
push 0
push str.HTTP_1.1
push 0x1010dfe8
push str.POST
push dword [0x1010dfdc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [0x1010dfe0], esi
test esi, esi
jne 0x1000f2bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100137e1
mov esp, ebp
pop ebp
ret
mov ecx, 0x1010e1e8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f2c5
sub ecx, edx
mov edx, 0x1010e5e8
push edi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f2d7
push ecx
push 0x1010e1e8
sub edx, edi
push edx
push 0x1010e5e8
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
pop edi
test eax, eax
je 0x1000f3a5
call fcn.1000f700
test al, al
je 0x1000f3a5
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0x100
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x104]
push eax
push 0x2b
push dword [0x1010dfe0]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000f3a5
mov eax, dword [0x1010e7e8]
cmp eax, 0x200
jae 0x1000f3c1
mov byte [eax + 0x1010e5e8], 0
lea eax, [ebp - 0x104]
push eax
push str.Set_Cookie:__s
push 0x200
push 0x1010e5e8
call fcn.1000e460
mov ecx, 0x1010e5e8
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f380
sub ecx, edx
mov dword [0x1010e7e8], ecx
call fcn.1000f9a0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100137e1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.1000f9a0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.100137e1
mov esp, ebp
pop ebp
ret
call fcn.10013706
int3
Function at 0x1000f740
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x1010dfe8], 0
push str._IEQ_HydSel_HydSel_JSP_api_page_searchresults
push 0x200
push 0x1010dfe8
call fcn.1000e500
mov eax, dword [0x1010e7e8]
add esp, 0xc
mov byte [0x1010e1e8], 0
cmp eax, 0x200
jae 0x1000f937
mov ecx, 0x1010e1e8
mov byte [eax + 0x1010e5e8], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f790
push esi
sub ecx, edx
push ecx
push str.Content_Length:__d
push 0x200
push 0x1010e5e8
call fcn.1000e460
add esp, 0x10
push 0
push 0x80800000
push 0x100900f0
push 0
push str.HTTP_1.1
push 0x1010dfe8
push 0x1002ec48
push dword [0x1010dfdc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [0x1010dfe0], esi
test esi, esi
jne 0x1000f7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x1010e1e8
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f800
sub ecx, edx
mov edx, 0x1010e5e8
push edi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f812
push ecx
push 0x1010e1e8
sub edx, edi
push edx
push 0x1010e5e8
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1000f924
call fcn.1000f700
test al, al
je 0x1000f924
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
lea eax, [ebp - 4]
push ebx
xor edi, edi
xor ebx, ebx
push edi
push edi
push eax
push dword [0x1010dfe0]
call esi
test eax, eax
je 0x1000f916
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000f916
inc eax
test edi, edi
je 0x1000f8a9
add eax, edi
push eax
call fcn.10016aad
push edi
mov esi, eax
push ebx
push esi
call fcn.10014730
mov ecx, dword [ebp - 4]
lea eax, [esi + edi]
inc ecx
push ecx
push 0
push eax
call fcn.10014cb0
push ebx
call fcn.10016a92
mov ebx, esi
add esp, 0x20
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x1000f8c1
push eax
call fcn.10016aad
mov ecx, dword [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push 0
push ebx
call fcn.10014cb0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [edi + ebx]
push eax
push dword [0x1010dfe0]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000f905
add edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push 0
push eax
push dword [0x1010dfe0]
call esi
test eax, eax
jne 0x1000f864
call fcn.1000f9a0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10016a92
add esp, 4
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.1000f9a0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.1000f9a0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10013706
int3
Function at 0x1000fdd0
Capabilities:
Connect to http server
Create http request

Disassembly:
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x1010dfd8], eax
test eax, eax
je 0x1000fec9
mov ecx, dword [0x10154798]
mov esi, dword [str.taco.betanext.intelliquip.com]
push 0
push 0
cmp byte [ecx], 0
push 3
cmovne esi, dword [str.taco.intelliquip.com]
push 0
push 0
push 0x1bb
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [0x1010dfdc], eax
test eax, eax
je 0x1000fec9
push esi
push str.Host:__s
push 0x200
push 0x1010e5e8
mov byte [0x1010e5e8], 0
call fcn.1000e460
push str.Content_Type:_application_x_www_form_urlencoded
push 0x200
push 0x1010e5e8
call fcn.1000e490
push str.Connection:_keep_alive
push 0x200
push 0x1010e5e8
call fcn.1000e490
push str.Cache_Control:_no_cache
push 0x200
push 0x1010e5e8
call fcn.1000e490
push str.Accept:__
push 0x200
push 0x1010e5e8
call fcn.1000e490
add esp, 0x40
push str.User_Agent:_HVACS
push 0x200
push 0x1010e5e8
call fcn.1000e490
mov ecx, 0x1010e5e8
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000feb6
sub ecx, edx
mov al, 1
mov dword [0x1010e7e8], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
ret
Function at 0x10024e66
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 0x10024f03
push ebx
push esi
call fcn.10024e2f
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.10024d78
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10024eb0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10024f02
push edi
push eax
call fcn.10020722
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10024ed0
call fcn.100206e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10024f01
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10024d78
add esp, 0x20
test eax, eax
jne 0x10024eef
push edi
call fcn.100206e8
jmp 0x10024ef7
push ebx
call fcn.100206e8
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 0x1002516e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100354c0
push 0x100354b8
push str.FlsAlloc
push 0x1e
call fcn.1002508c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100251a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d13c]
call esi
jmp 0x100251a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100251ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100354d0
push 0x100354c8
push str.FlsGetValue
push 0x20
call fcn.1002508c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025223
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1002b9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002ba1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002ba1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418a13
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x418ad4
test ecx, ecx
je 0x418ad4
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x418ad4
test ebx, ebx
je 0x418ad4
mov ebx, eax
add ebx, edx
je 0x418ad4
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x418ad4
cmp dword [edx + eax + 0x14], 0
je 0x418ad4
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x418ad4
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x418ac4
test dl, dl
je 0x418ac0
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x418ac4
add edi, 2
add esi, 2
test dl, dl
jne 0x418aa4
xor eax, eax
jmp 0x418ac9
sbb eax, eax
or eax, 1
test eax, eax
je 0x418ae0
inc ebp
cmp ebp, dword [esp + 4]
jb 0x418a91
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4300a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f1590]
xor edx, edx
cmp eax, edx
jne 0x4300c6
xor eax, eax
mov byte [eax + 0x4f1490], al
inc eax
cmp eax, 0x100
jl 0x4300ae
mov dword [0x4f1590], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f1490
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x430157
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x43012a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4300f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4301d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x430223
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43020a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4345b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x4347d1
cmp eax, 8
jg 0x4347d1
cmp dword [esp + 0x8c], 2
jl 0x4347d1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x4347d1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4347d1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x434637
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x4347ba
mov ebp, dword [0x4ac4ec]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x434669
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4347a1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x434689
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4ac4d8]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4346c8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4ac4e0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4ac520]
test eax, eax
jne 0x434788
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00433bc0
cmp eax, 1
jne 0x4347b2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00434470
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x43467d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4347ba
jmp 0x434654
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00433750
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x437230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4373c8
cmp ebp, ebx
jle 0x4373c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x43728e
dec eax
or eax, 0xfffffff8
inc eax
je 0x437295
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4372a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4372ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0049d3e9
add esp, 4
cmp eax, ebx
je 0x4372cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0049d3e9
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4373be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4373a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x437391
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x437386
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x437394
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x437394
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x437330
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x437321
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret