joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e1d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov dx, word [eax]
shr dx, 1
push esi
movzx esi, dx
xor ecx, ecx
test si, si
push edi
mov word [esp + 8], 0x5c
mov word [esp + 0xa], 0x2f
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0x2a
mov word [esp + 0x10], 0x3f
mov word [esp + 0x12], 0x22
mov word [esp + 0x14], 0x3c
mov word [esp + 0x16], 0x3e
mov word [esp + 0x18], 0x7c
jbe 0x44e257
mov edi, dword [eax + 4]
jmp 0x44e230
movzx edx, cx
movzx edx, word [edi + edx*2]
xor eax, eax
lea esp, [esp]
cmp dx, word [esp + eax*2 + 8]
je 0x44e262
add eax, 1
cmp eax, 9
jb 0x44e240
add ecx, 1
cmp cx, si
jb 0x44e230
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x48e3a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 1
push 0x10087b98
push 0x10087ba8
call dword [0x10078210]
push eax
call dword [0x10078218]
mov dword [0x10176b68], eax
push 0x10087bbc
push 0x10087bcc
call dword [0x10078210]
push eax
call dword [0x10078218]
mov dword [0x10176b64], eax
push 0x10087be0
push 0x10087bf4
call dword [0x10078210]
push eax
call dword [0x10078218]
mov dword [0x10176b60], eax
push 0
call dword [0x10078210]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
jmp 0x48e44d
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x18], edx
jge 0x48e529
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x28
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
push 9
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x10176b68]
push 8
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [0x10176b64]
mov byte [ebp - 0x28], 0xac
mov byte [ebp - 0x27], 5
mov byte [ebp - 0x26], 0x45
mov byte [ebp - 0x25], 0x67
mov byte [ebp - 0x24], 0x89
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0xff
mov byte [ebp - 0x21], 0xfa
mov byte [ebp - 0x20], 0x15
mov byte [ebp - 0x1f], 6
mov byte [ebp - 0x1e], 2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx - 0xb]
mov dword [ebp - 0x40], ecx
jmp 0x48e4de
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x2c]
jb 0x48e524
push 0xb
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [0x10176b60]
cmp eax, 0xb
jne 0x48e522
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
sub edx, 4
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0048d4d0
mov dword [ebp - 8], eax
jmp 0x48e524
jmp 0x48e4d5
jmp 0x48e444
mov esp, ebp
pop ebp
ret
Function at 0x4bbc60
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x1007c920
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.004c1720
mov dword [esi], eax
mov ecx, 0x20
mov dword [esi + 4], ebx
add esp, 8
mov byte [eax], bl
mov eax, 1
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xac], ecx
push 0x100786d3
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0x10000
mov dword [esp + 0x24], 0x1007a808
mov dword [esp + 0x28], 0x20000
mov dword [esp + 0x2c], 0x1007a7f8
mov dword [esp + 0x30], 0x100000
mov dword [esp + 0x34], 0x1007a7ec
mov dword [esp + 0x38], 0x40000
mov dword [esp + 0x3c], 0x1007a7e0
mov dword [esp + 0x40], 0x80000
mov dword [esp + 0x44], 0x1007a7d4
mov dword [esp + 0x48], 0x80000000
mov dword [esp + 0x4c], 0x1007a7c4
mov dword [esp + 0x50], 0x40000000
mov dword [esp + 0x54], 0x1007a7b4
mov dword [esp + 0x58], 0x20000000
mov dword [esp + 0x5c], 0x1007a7a4
mov dword [esp + 0x60], 0x10000000
mov dword [esp + 0x64], 0x1007a798
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x1007a788
mov dword [esp + 0x70], 0x80
mov dword [esp + 0x74], 0x1007a770
mov dword [esp + 0x78], 8
mov dword [esp + 0x7c], 0x1007a760
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], 0x1007a750
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x8c], 0x1007a738
mov dword [esp + 0x90], 0x10
mov dword [esp + 0x94], 0x1007a728
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], 0x1007a714
mov dword [esp + 0xa4], 0x1007a704
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0x1007a6f0
mov dword [esp + 0xb4], 0x1007a6e0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004aa410
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.004aa410
cmp ebp, ebx
je 0x4bbe1f
push ebp
call fcn.004c17d0
add esp, 4
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test dword [esp + 0x120], eax
je 0x4bbe54
not eax
and dword [esp + 0x120], eax
cmp dword [edi + 8], ebx
je 0x4bbe48
push 0x1007a6dc
mov ecx, esi
call fcn.004aa250
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.004aa250
add ebp, 1
cmp ebp, 0x13
jb 0x4bbe21
cmp dword [edi + 8], ebx
jne 0x4bbea3
push 0x1007a6d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004aa410
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.004aa410
cmp ebp, ebx
je 0x4bbedf
push ebp
call fcn.004c17d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [esp + 0x120]
cmp eax, ebx
je 0x4bbedf
push eax
lea ecx, [esp + 0x20]
push 0x1007a6cc
push ecx
call dword [0x10078238]
add esp, 0xc
cmp dword [edi + 8], ebx
je 0x4bbed3
push 0x1007a6dc
mov ecx, esi
call fcn.004aa250
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004aa250
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x4bc430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x1007c920
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.004c1720
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
push 0x100786d3
lea ecx, [esp + 0x14]
mov byte [eax], bl
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x1007aa7c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], 0x1007aa64
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0x1007aa50
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 0x1007aa38
mov dword [esp + 0x40], 0x800
mov dword [esp + 0x44], 0x1007aa24
mov dword [esp + 0x48], 8
mov dword [esp + 0x4c], 0x1007aa04
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x54], 0x1007a9e8
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x5c], 0x1007a9c8
mov dword [esp + 0x60], 0x80
mov dword [esp + 0x64], 0x1007a9ac
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], 0x1007a990
mov dword [esp + 0x70], 0x200
mov dword [esp + 0x74], 0x1007a978
mov dword [esp + 0x78], 0x1000
mov dword [esp + 0x7c], 0x1007a960
mov dword [esp + 0x80], 0x2000
mov dword [esp + 0x84], 0x1007a948
mov dword [esp + 0x88], 0x4000
mov dword [esp + 0x8c], 0x1007a92c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004aa410
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.004aa410
cmp ebp, ebx
je 0x4bc587
push ebp
call fcn.004c17d0
add esp, 4
mov ebx, dword [esp + 0x190]
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test ebx, eax
je 0x4bc5ba
not eax
and ebx, eax
cmp dword [edi + 8], 0
je 0x4bc5ae
push 0x1007a6dc
mov ecx, esi
call fcn.004aa250
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.004aa250
add ebp, 1
cmp ebp, 0xe
jb 0x4bc590
xor ebp, ebp
cmp dword [edi + 8], ebp
jne 0x4bc60b
push 0x1007a6d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004aa410
mov ebx, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.004aa410
cmp ebx, ebp
je 0x4bc646
push ebx
call fcn.004c17d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
cmp ebx, ebp
je 0x4bc646
push ebx
lea ecx, [esp + 0x90]
push 0x1007a6cc
push ecx
call dword [0x10078238]
add esp, 0xc
cmp dword [edi + 8], ebp
je 0x4bc637
push 0x1007a6dc
mov ecx, esi
call fcn.004aa250
lea edx, [esp + 0x8c]
push edx
mov ecx, esi
call fcn.004aa250
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
Function at 0x4c8880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
test esi, esi
je 0x4c8900
mov eax, dword [esi + 0x3c]
push ebx
push edi
mov edi, dword [eax + esi + 0x78]
add edi, esi
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jbe 0x4c88f9
mov edi, edi
mov ecx, dword [edi + 0x20]
lea edx, [ecx + ebx*4]
mov eax, dword [edx + esi]
mov ecx, dword [esp + 0x18]
add eax, esi
test eax, 0xffff0000
je 0x4c88cf
test ecx, 0xffff0000
je 0x4c88cf
push ecx
push eax
call dword [0x100781ac]
neg eax
sbb eax, eax
add eax, 1
jmp 0x4c88d8
xor edx, edx
cmp eax, ecx
sete dl
mov eax, edx
test eax, eax
je 0x4c88f1
mov eax, dword [edi + 0x24]
lea ecx, [eax + ebx*2]
movzx edx, word [ecx + esi]
mov eax, dword [edi + 0x1c]
lea ecx, [eax + edx*4]
mov ebp, dword [ecx + esi]
add ebp, esi
add ebx, 1
cmp ebx, dword [edi + 0x18]
jb 0x4c88a0
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x4c8ce0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test si, si
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4c8d1b
mov edi, dword [esp + 0x14]
mov edi, edi
mov ecx, dword [eax + 0xc]
cmp ecx, edi
ja 0x4c8d10
mov ebx, dword [eax + 8]
add ebx, ecx
cmp ebx, edi
ja 0x4c8d1d
add edx, 1
add eax, 0x28
cmp dx, si
jb 0x4c8d00
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4e5d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov dx, word [eax]
shr dx, 1
push esi
movzx esi, dx
xor ecx, ecx
test si, si
push edi
mov word [esp + 8], 0x5c
mov word [esp + 0xa], 0x2f
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0x2a
mov word [esp + 0x10], 0x3f
mov word [esp + 0x12], 0x22
mov word [esp + 0x14], 0x3c
mov word [esp + 0x16], 0x3e
mov word [esp + 0x18], 0x7c
jbe 0x4e5dc7
mov edi, dword [eax + 4]
jmp 0x4e5da0
movzx edx, cx
movzx edx, word [edi + edx*2]
xor eax, eax
lea esp, [esp]
cmp dx, word [esp + eax*2 + 8]
je 0x4e5dd2
add eax, 1
cmp eax, 9
jb 0x4e5db0
add ecx, 1
cmp cx, si
jb 0x4e5da0
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x405f20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
dec esp
mov byte [ebx], al
inc ecx
add dl, al
enter 0xffffffffffff8540, 0xffffffffffffffc9
mov dword [0xe0411188], eax
je 0x405f5a
xor eax, eax
mov ecx, dword [edi]
pop ebp
ret
mov dword [0xae8c54], eax
call fcn.00404940
in al, dx
sar byte [eax + 0x50505073], 0x8d
inc ebp
push es
push eax
call 0x3f8260
push ebx
rcl byte [edx - 0x435b47f7], 0
mov al, byte [0xc35de58b]
mov ecx, dword [ebp - 4]
push str.apr_initialize
push ecx
call fcn.00405602
push cs
xchg ebp, eax
push 0x52ffff4b
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
lodsb al, byte [esi]
leave
cmp bh, byte [ecx]
mov ax, word [ebp + 0x6902fe68]
cmp al, 2
cld
and ebp, esi
mov cs, word [edx + 0x75ac84cc]
sbb ecx, dword [ebx - 0x17ad03ab]
bound eax, qword [eax + eax - 0x5f]
mov eax, dword [ebp - 4]
fsubp st(0)
imul eax, dword [eax + eax], 0x3308c46f
or byte [ebx - 0x3895a2d9], cl
call fcn.0040a430
outsd dx, dword [esi]
les ecx, [eax]
xor ecx, dword [eax]
mov esp, dword [edi]
pop ebp
push 0xffffffffffffffc7
adc eax, 0x40c146
mov eax, 0x11
jnp 0x405fc2
pop ebp
ret

Function at 0x40a705
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x40a707
ret
Function at 0x8ccbc3
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
add ebx, ebx
call fcn.008ccbf5
sub ebx, ebx
xor dword [ecx], edx
add esi, esi
sub ebx, 1
add ebx, ebx
inc ecx
sub ebx, 0x6df73e21
sub ebx, 0xd1341610
cmp ecx, eax
jne fcn.008ccbc3
or esi, ebx
ret
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021eb
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073b7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f18
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016a9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xc
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x27
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x70
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x25
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xe
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x53
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xb7
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x7f
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xec
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd6
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x20
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x26
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x45
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xd7
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xf3
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6c
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x99
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb1
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x70
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x21
push ebp
push ebp
push ebp
call ebx
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6a
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x4b
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x9e
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x87
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xa8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa1
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x4e
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4016b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x41d00c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401729
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040119d
test esi, esi
je 0x401716
cmp dword [esp + 0x38], 3
jbe 0x401716
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.0040179e
pop ecx
pop ecx
test eax, eax
je 0x401716
cmp eax, dword [esp + 0x38]
je 0x401741
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00401535
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4016e2
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004021f9
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00401535
jmp 0x40172b

Function at 0x40179e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
lea eax, [esi + 0x10]
mov edi, dword [eax]
mov ebp, edi
xor ebp, dword [esp + 0x24]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x18], eax
jb 0x4017c4
mov esi, dword [esi]
mov dword [esp + 0x20], esi
shr edi, 2
xor ebx, ebx
mov dword [esp + 0x14], edi
test edi, edi
je 0x401821
mov dword [esp + 0x24], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
push 4
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00402e40
imul ecx, dword [esp + 0x30], 0x5bd1e991
add esp, 0xc
imul ebp, ebp, 0x5bd1e991
add esi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov dword [esp + 0x24], eax
sub edi, 1
jne 0x4017d5
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x401847
sub eax, 1
je 0x40183d
sub eax, 1
jne 0x401855
movsx ebx, byte [esi + edi*4 + 2]
shl ebx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ebx, eax
movsx eax, byte [esi + edi*4]
xor eax, ebx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret

Function at 0x401887
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [section..bSc], eax
push 0xda4c2ca8
push dword [section..bSc]
call fcn.004016b1
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
pop edi
pop esi
leave
ret
Function at 0x402b05
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402b44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402b44
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402b44
cmp dword [ecx + 0x74], 0xe
jbe 0x402b44
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409384
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417924
push 0x41791c
push str.FlsAlloc
push 0x1e
call fcn.00409205
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x415148]
call esi
jmp 0x4093be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409402
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417934
push 0x41792c
push str.FlsGetValue
push 0x20
call fcn.00409205
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409439
push dword [ebp + 8]
mov ecx, esi
call dword [0x415148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c922
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 0x40c9bf
push ebx
push esi
call fcn.0040c8eb
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.0040c834
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c96c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c9be
push edi
push eax
call fcn.00409ba0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c98c
call fcn.00409098
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c9bd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c834
add esp, 0x20
test eax, eax
jne 0x40c9ab
push edi
call fcn.00409098
jmp 0x40c9b3
push ebx
call fcn.00409098
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 0x414270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41429d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41429d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1372220
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x1399094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0137f140
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x13722ef
mov eax, 0x1397290
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1372265
sub eax, edx
sar eax, 1
je 0x13722ef
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [0x13900f0]
push 0x1397290
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0137d596
push 0x1397288
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0137d6d9
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x13722ef
push eax
push 1
push 0x200
push esi
call fcn.0137d9cc
mov eax, dword [esp + 0x14]
push eax
call fcn.0137da60
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0137d358
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0137d358
add esp, 0x214
ret
Function at 0x401900
Capabilities:
Resume thread

Disassembly:
sub esp, 0x200
lea eax, [esp]
push esi
mov esi, ecx
push 0x100
push eax
lea ecx, [esi + 0x110]
call fcn.0041145e
mov al, byte [esp + 4]
test al, al
jne 0x401933
mov eax, 0xfffffffc
pop esi
add esp, 0x200
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x422084], eax
jne 0x401983
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x108]
push str.LoadLibrary_error__d_trying_to_load_.DLL
push edx
call fcn.004034ae
add esp, 0xc
lea eax, [esp + 0x104]
lea ecx, [esi + 0x1c4]
push eax
call fcn.00411437
mov eax, 0xfffffffb
pop esi
add esp, 0x200
ret
push str.Loaded_.DLL
lea ecx, [esi + 0x1c4]
call fcn.00411437
mov ecx, dword [0x422080]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x41e0b4]
test eax, eax
jl 0x401a4c
cmp eax, 2
jge 0x401a4c
lea edx, [eax + eax*2]
call dword [edx*4 + 0x41e0bc]
test eax, eax
jne 0x4019d1
mov eax, 0xfffffffe
pop esi
add esp, 0x200
ret
call fcn.00401730
mov eax, dword [0x41e0b4]
mov dword [0x42207c], 0
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x41e0c0]
test ecx, ecx
je 0x401a42
push 0
push 4
push 0
push 0
push 0
push 0x401880
call fcn.0040fdff
test eax, eax
mov dword [0x42207c], eax
jne 0x401a2b
push eax
push eax
push str.AfxBeginThread_failed...
mov ecx, esi
call fcn.00412f8d
mov eax, 0xfffffffd
pop esi
add esp, 0x200
ret
mov dword [eax + 0x24], 0
mov ecx, dword [0x42207c]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 0x200
ret
or eax, 0xffffffff
pop esi
add esp, 0x200
ret